| 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/edk/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", |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 checkDefaultValues(); | 162 checkDefaultValues(); |
| 163 | 163 |
| 164 var foo = makeFoo(); | 164 var foo = makeFoo(); |
| 165 checkFoo(foo); | 165 checkFoo(foo); |
| 166 | 166 |
| 167 var pipe = core.createMessagePipe(); | 167 var pipe = core.createMessagePipe(); |
| 168 serviceProxy.frobinate(foo, sample.Service.BazOptions.EXTRA, pipe.handle0); | 168 serviceProxy.frobinate(foo, sample.Service.BazOptions.EXTRA, pipe.handle0); |
| 169 expect(core.close(pipe.handle0)).toBe(core.RESULT_OK); | 169 expect(core.close(pipe.handle0)).toBe(core.RESULT_OK); |
| 170 expect(core.close(pipe.handle1)).toBe(core.RESULT_OK); | 170 expect(core.close(pipe.handle1)).toBe(core.RESULT_OK); |
| 171 }); | 171 }); |
| OLD | NEW |