function setUp() {
  asyncTestCase.stepTimeout = 2000;
  mockControl = new goog.testing.MockControl();
  e2e.ext.testingstubs.initStubs(stubs);

  stubs.replace(goog.Timer.prototype, 'start', goog.nullFunction);

  fakeStorage = new goog.testing.storage.FakeMechanism();
  helperProxy = new e2e.ext.utils.TabsHelperProxy(false);

  prompt = new e2e.ext.ui.Prompt(helperProxy);
  prompt.pgpLauncher_ = new e2e.ext.ExtensionLauncher(
      new e2e.openpgp.ContextImpl(new goog.testing.storage.FakeMechanism()),
      fakeStorage);
  prompt.pgpLauncher_.start();
  stubs.setPath('window.chrome.runtime.getBackgroundPage', function(callback) {
    callback({launcher: prompt.pgpLauncher_});
  });

  stubs.replace(e2e.ext.Launcher.prototype, 'hasPassphrase', function() {
    return true;
  });

}
@suppress {extraRequire} intentionally importing all signer functions