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

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

Issue 799113004: Update mojo sdk to rev 59145288bae55b0fce4276b017df6a1117bcf00f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add mojo's ply to checklicenses whitelist Created 6 years 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
« no previous file with comments | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/mojo_edk.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 SimpleMessageReceiver.prototype.accept = function(message) { 148 SimpleMessageReceiver.prototype.accept = function(message) {
149 if (dumpMessageAsHex) { 149 if (dumpMessageAsHex) {
150 var uint8Array = new Uint8Array(message.buffer.arrayBuffer); 150 var uint8Array = new Uint8Array(message.buffer.arrayBuffer);
151 console.log(hexdump.dumpArray(uint8Array)); 151 console.log(hexdump.dumpArray(uint8Array));
152 } 152 }
153 // Imagine some IPC happened here. 153 // Imagine some IPC happened here.
154 var serviceImpl = new ServiceImpl(); 154 var serviceImpl = new ServiceImpl();
155 serviceImpl.accept(message); 155 serviceImpl.accept(message);
156 }; 156 };
157 157
158 var receiver = new SimpleMessageReceiver(); 158 var serviceProxy = new sample.Service.proxyClass;
159 var serviceProxy = new sample.Service.proxyClass(receiver); 159 serviceProxy.receiver_ = new SimpleMessageReceiver;
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 });
OLDNEW
« no previous file with comments | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/mojo_edk.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698