summaryrefslogtreecommitdiffstats
path: root/mojo/apps/js/bindings/sample_service_unittests.js
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/apps/js/bindings/sample_service_unittests.js')
-rw-r--r--mojo/apps/js/bindings/sample_service_unittests.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/mojo/apps/js/bindings/sample_service_unittests.js b/mojo/apps/js/bindings/sample_service_unittests.js
index 2b8c31c..8030f44 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);
});