OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 define([ | 5 define([ |
6 "console", | 6 "console", |
7 "mojo/apps/js/test/hexdump", | 7 "mojo/edk/js/test/hexdump", |
8 "gin/test/expect", | 8 "gin/test/expect", |
9 "mojo/public/interfaces/bindings/tests/sample_service.mojom", | 9 "mojo/public/interfaces/bindings/tests/sample_service.mojom", |
10 "mojo/public/interfaces/bindings/tests/sample_import.mojom", | 10 "mojo/public/interfaces/bindings/tests/sample_import.mojom", |
11 "mojo/public/interfaces/bindings/tests/sample_import2.mojom", | 11 "mojo/public/interfaces/bindings/tests/sample_import2.mojom", |
12 ], function(console, hexdump, expect, sample, imported, imported2) { | 12 ], function(console, hexdump, expect, sample, imported, imported2) { |
13 | 13 |
14 var global = this; | 14 var global = this; |
15 | 15 |
16 // Set this variable to true to print the binary message in hex. | 16 // Set this variable to true to print the binary message in hex. |
17 var dumpMessageAsHex = false; | 17 var dumpMessageAsHex = false; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 var serviceProxy = new sample.Service.proxyClass(receiver); | 159 var serviceProxy = new sample.Service.proxyClass(receiver); |
160 | 160 |
161 checkDefaultValues(); | 161 checkDefaultValues(); |
162 | 162 |
163 var foo = makeFoo(); | 163 var foo = makeFoo(); |
164 checkFoo(foo); | 164 checkFoo(foo); |
165 | 165 |
166 var port = 10; | 166 var port = 10; |
167 serviceProxy.frobinate(foo, sample.Service.BazOptions.EXTRA, port); | 167 serviceProxy.frobinate(foo, sample.Service.BazOptions.EXTRA, port); |
168 }); | 168 }); |
OLD | NEW |