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

Side by Side Diff: mojo/edk/js/tests/js_to_cpp.mojom

Issue 728133002: Update mojo sdk to rev e01f9a49449381a5eb430c1fd88bf2cae73ec35a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android + ios gyp fixes Created 6 years, 1 month 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/js/tests/connection_tests.js ('k') | mojo/edk/js/tests/js_to_cpp_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 module js_to_cpp;
2
3 // This struct encompasses all of the basic types, so that they
4 // may be sent from C++ to JS and back for validation.
5 struct EchoArgs {
6 int64 si64;
7 int32 si32;
8 int16 si16;
9 int8 si8;
10 uint64 ui64;
11 uint32 ui32;
12 uint16 ui16;
13 uint8 ui8;
14 float float_val;
15 float float_inf;
16 float float_nan;
17 double double_val;
18 double double_inf;
19 double double_nan;
20 string? name;
21 array<string>? string_array;
22 handle<message_pipe>? message_handle;
23 handle<data_pipe_consumer>? data_handle;
24 };
25
26 struct EchoArgsList {
27 EchoArgsList? next;
28 EchoArgs? item;
29 };
30
31 // Note: For messages which control test flow, pick numbers that are unlikely
32 // to be hit as a result of our deliberate corruption of response messages.
33 interface CppSide {
34 // Sent for all tests to notify that the JS side is now ready.
35 StartTest@88888888();
36
37 // Indicates end for echo, bit-flip, and back-pointer tests.
38 TestFinished@99999999();
39
40 // Responses from specific tests.
41 PingResponse();
42 EchoResponse(EchoArgsList list);
43 BitFlipResponse(EchoArgsList arg);
44 BackPointerResponse(EchoArgsList arg);
45 };
46
47 [Client=CppSide]
48 interface JsSide {
49 Ping();
50 Echo(int32 numIterations, EchoArgs arg);
51 BitFlip(EchoArgs arg);
52 BackPointer(EchoArgs arg);
53 };
OLDNEW
« no previous file with comments | « mojo/edk/js/tests/connection_tests.js ('k') | mojo/edk/js/tests/js_to_cpp_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698