Index: remoting/webapp/unittests/it2me_helpee_channel_unittest.js |
diff --git a/remoting/webapp/unittests/it2me_helpee_channel_unittest.js b/remoting/webapp/unittests/it2me_helpee_channel_unittest.js |
index 4ccfb08e74a768d3d794dc9e7411b78fad37e07d..ad03b54717a06e323393357e3dde658b1a56c762 100644 |
--- a/remoting/webapp/unittests/it2me_helpee_channel_unittest.js |
+++ b/remoting/webapp/unittests/it2me_helpee_channel_unittest.js |
@@ -129,8 +129,11 @@ QUnit.asyncTest('connect() should return access code', |
function() { |
// Stubs authentication. |
sinon.stub(base, 'isAppsV2').returns(true); |
- sinon.stub(remoting.MessageWindow, 'showConfirmWindow') |
- .callsArgWith(4, 1 /* 1 for OK. */); |
+ sinon.stub(remoting.HangoutConsentDialog, 'getInstance').returns({ |
+ show : function() { |
+ return Promise.resolve(); |
+ } |
+ }); |
sinon.stub(chrome.identity, 'getAuthToken') |
.callsArgWith(1, 'token'); |
// Stubs Host behavior. |
@@ -154,7 +157,6 @@ QUnit.asyncTest('connect() should return access code', |
chrome.identity.getAuthToken.restore(); |
base.isAppsV2.restore(); |
- remoting.MessageWindow.showConfirmWindow.restore(); |
QUnit.start(); |
}); |
}); |