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

Side by Side Diff: mojo/apps/js/bindings/sample_service_unittests.js

Issue 219243011: Mojo: Move mojo/public/bindings/tests/*.mojom to mojo/public/interfaces/bindings/tests/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « mojo/apps/js/bindings/connection_unittests.js ('k') | mojo/bindings/js/codec_unittests.js » ('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/apps/js/test/hexdump", 7 "mojo/apps/js/test/hexdump",
8 "gin/test/expect", 8 "gin/test/expect",
9 "mojo/public/bindings/tests/sample_service.mojom", 9 "mojo/public/interfaces/bindings/tests/sample_service.mojom",
10 "mojo/public/bindings/tests/sample_import.mojom", 10 "mojo/public/interfaces/bindings/tests/sample_import.mojom",
11 "mojo/public/bindings/tests/sample_import2.mojom", 11 "mojo/public/interfaces/bindings/tests/sample_import2.mojom",
12 ], function(console, hexdump, expect, sample, imported, imported2) { 12 ], function(console, hexdump, expect, sample, imported, imported2) {
13 13
14 var global = this; 14 var global = this;
15 15
16 // Set this variable to true to print the binary message in hex. 16 // Set this variable to true to print the binary message in hex.
17 var dumpMessageAsHex = false; 17 var dumpMessageAsHex = false;
18 18
19 function makeFoo() { 19 function makeFoo() {
20 var bar = new sample.Bar(); 20 var bar = new sample.Bar();
21 bar.alpha = 20; 21 bar.alpha = 20;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 var serviceProxy = new sample.ServiceProxy(receiver); 151 var serviceProxy = new sample.ServiceProxy(receiver);
152 152
153 checkDefaultValues(); 153 checkDefaultValues();
154 154
155 var foo = makeFoo(); 155 var foo = makeFoo();
156 checkFoo(foo); 156 checkFoo(foo);
157 157
158 var port = 10; 158 var port = 10;
159 serviceProxy.frobinate(foo, sample.ServiceProxy.BazOptions.BAZ_EXTRA, port); 159 serviceProxy.frobinate(foo, sample.ServiceProxy.BazOptions.BAZ_EXTRA, port);
160 }); 160 });
OLDNEW
« no previous file with comments | « mojo/apps/js/bindings/connection_unittests.js ('k') | mojo/bindings/js/codec_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698