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

Side by Side Diff: mojo/edk/js/tests/sample_service_tests.js

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to mojo::edk namespace in preparation for runtim flag Created 5 years, 3 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 unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698