TestInstallSession

A controllable install Session test double for usage with TestPackageInstaller.

State and progress listeners are invoked on the calling thread, and the current state and progress are delivered immediately when a listener is added. Use TestSession.controller to drive state and progress transitions directly or script transitions tied to Session.launch and Session.commit calls with TestSessionScript.