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

Side by Side Diff: mojo/edk/js/tests/js_to_cpp_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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('mojo/edk/js/tests/js_to_cpp_tests', [ 5 define('mojo/edk/js/tests/js_to_cpp_tests', [
6 'console', 6 'console',
7 'mojo/edk/js/tests/js_to_cpp.mojom', 7 'mojo/edk/js/tests/js_to_cpp.mojom',
8 'mojo/public/js/bindings', 8 'mojo/public/js/bindings',
9 'mojo/public/js/connection', 9 'mojo/public/js/connection',
10 'mojo/public/js/connector', 10 'mojo/public/js/connector',
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 sampleMessage = new Uint8Array(DATA_PIPE_PARAMS.capacityNumBytes); 219 sampleMessage = new Uint8Array(DATA_PIPE_PARAMS.capacityNumBytes);
220 for (i = 0; i < sampleMessage.length; ++i) { 220 for (i = 0; i < sampleMessage.length; ++i) {
221 sampleMessage[i] = 255 - i; 221 sampleMessage[i] = 255 - i;
222 } 222 }
223 retainedJsSideStub = 223 retainedJsSideStub =
224 connection.bindHandleToStub(jsSideRequestHandle, jsToCpp.JsSide); 224 connection.bindHandleToStub(jsSideRequestHandle, jsToCpp.JsSide);
225 retainedJsSide = new JsSideConnection; 225 retainedJsSide = new JsSideConnection;
226 bindings.StubBindings(retainedJsSideStub).delegate = retainedJsSide; 226 bindings.StubBindings(retainedJsSideStub).delegate = retainedJsSide;
227 }; 227 };
228 }); 228 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698