| 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/public/bindings/js/test/hexdump", | 7 "mojo/apps/js/test/hexdump", |
| 8 "gin/test/expect", | 8 "gin/test/expect", |
| 9 "mojom/sample_service" | 9 "mojom/sample_service" |
| 10 ], function(console, hexdump, expect, sample) { | 10 ], function(console, hexdump, expect, sample) { |
| 11 | 11 |
| 12 var global = this; | 12 var global = this; |
| 13 | 13 |
| 14 // Set this variable to true to print the binary message in hex. | 14 // Set this variable to true to print the binary message in hex. |
| 15 var dumpMessageAsHex = false; | 15 var dumpMessageAsHex = false; |
| 16 | 16 |
| 17 function makeFoo() { | 17 function makeFoo() { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 var receiver = new SimpleMessageReceiver(); | 108 var receiver = new SimpleMessageReceiver(); |
| 109 var serviceProxy = new sample.ServiceProxy(receiver); | 109 var serviceProxy = new sample.ServiceProxy(receiver); |
| 110 | 110 |
| 111 var foo = makeFoo(); | 111 var foo = makeFoo(); |
| 112 checkFoo(foo); | 112 checkFoo(foo); |
| 113 | 113 |
| 114 var port = 10; | 114 var port = 10; |
| 115 serviceProxy.frobinate(foo, true, port); | 115 serviceProxy.frobinate(foo, true, port); |
| 116 }); | 116 }); |
| OLD | NEW |