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

Unified Diff: mojo/apps/js/bindings/sample_service_unittests.js

Issue 628763002: Mojo JS bindings: simplify mojo.connectToService() usage - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed template indentation Created 6 years, 2 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 | « mojo/apps/js/bindings/connection_unittests.js ('k') | mojo/apps/js/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/bindings/sample_service_unittests.js
diff --git a/mojo/apps/js/bindings/sample_service_unittests.js b/mojo/apps/js/bindings/sample_service_unittests.js
index 2b8c31c1673b83bc23fae6f8e4d8379dfbe117ab..8030f448bcc76960d8b88f1285b9e8a7cfb74189 100644
--- a/mojo/apps/js/bindings/sample_service_unittests.js
+++ b/mojo/apps/js/bindings/sample_service_unittests.js
@@ -133,11 +133,11 @@ define([
function ServiceImpl() {
}
- ServiceImpl.prototype = Object.create(sample.ServiceStub.prototype);
+ ServiceImpl.prototype = Object.create(sample.Service.stubClass.prototype);
ServiceImpl.prototype.frobinate = function(foo, baz, port) {
checkFoo(foo);
- expect(baz).toBe(sample.ServiceStub.BazOptions.EXTRA);
+ expect(baz).toBe(sample.Service.BazOptions.EXTRA);
expect(port).toBe(10);
global.result = "PASS";
};
@@ -156,7 +156,7 @@ define([
};
var receiver = new SimpleMessageReceiver();
- var serviceProxy = new sample.ServiceProxy(receiver);
+ var serviceProxy = new sample.Service.proxyClass(receiver);
checkDefaultValues();
@@ -164,5 +164,5 @@ define([
checkFoo(foo);
var port = 10;
- serviceProxy.frobinate(foo, sample.ServiceProxy.BazOptions.EXTRA, port);
+ serviceProxy.frobinate(foo, sample.Service.BazOptions.EXTRA, port);
});
« no previous file with comments | « mojo/apps/js/bindings/connection_unittests.js ('k') | mojo/apps/js/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698