Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1577)

Unified Diff: remoting/webapp/unittests/it2me_helper_channel_unittest.js

Issue 473073002: Move hello message from It2MeService to It2MeChannel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One bird per stone Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/background/it2me_service.js ('k') | remoting/webapp/unittests/it2me_service_unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/unittests/it2me_helper_channel_unittest.js
diff --git a/remoting/webapp/unittests/it2me_helper_channel_unittest.js b/remoting/webapp/unittests/it2me_helper_channel_unittest.js
index b5511c33058c9c9a0ef7d3ceb1aea7589e0561d1..f0a0fa230ea08838d45436cb292d28b4daa4812c 100644
--- a/remoting/webapp/unittests/it2me_helper_channel_unittest.js
+++ b/remoting/webapp/unittests/it2me_helper_channel_unittest.js
@@ -61,6 +61,16 @@ function promiseResolveSynchronous(value) {
};
}
+test('onHangoutMessage_("hello") should return supportedFeatures', function() {
+ hangoutPort.onMessage.mock$fire(
+ { method: remoting.It2MeHelperChannel.HangoutMessageTypes.HELLO });
+
+ sinon.assert.calledWith(hangoutPort.postMessage, {
+ method: remoting.It2MeHelperChannel.HangoutMessageTypes.HELLO_RESPONSE,
+ supportedFeatures: base.values(remoting.It2MeHelperChannel.Features)
Jamie 2014/08/15 23:30:12 This is testing something stricter than it needs t
+ });
+});
+
test('onHangoutMessage_(|connect|) should launch the webapp',
function() {
sinon.assert.called(appLauncher.launch);
« no previous file with comments | « remoting/webapp/background/it2me_service.js ('k') | remoting/webapp/unittests/it2me_service_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698