| 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 9c66b49f9b47f10ed528943f0bfd12bae1e80825..85bee2bbeb79d8fcefc70013ae4d7d4228ef2a5e 100644
|
| --- a/remoting/webapp/unittests/it2me_helpee_channel_unittest.js
|
| +++ b/remoting/webapp/unittests/it2me_helpee_channel_unittest.js
|
| @@ -128,10 +128,10 @@ QUnit.asyncTest('connect() should return access code',
|
| });
|
| sinon.stub(chrome.identity, 'getAuthToken')
|
| .callsArgWith(1, 'token');
|
| - sinon.stub(remoting.identity, 'callWithToken')
|
| - .callsArgWith(0, 'token');
|
| + sinon.stub(remoting.identity, 'getToken')
|
| + .returns(Promise.resolve('token'));
|
| sinon.stub(remoting.identity, 'getEmail')
|
| - .callsArgWith(0, {token: 'token', email: 'test@chromium.org'});
|
| + .returns(Promise.resolve('test@chromium.org'));
|
| // Stubs Host behavior.
|
| sinon.stub(host, 'initialized').returns(true);
|
| sinon.stub(host, 'connect')
|
|
|