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

Side by Side Diff: mojo/apps/js/test/js_to_cpp.mojom

Issue 292243002: Add mojo bindings backpointer tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove stray "explicit" keywords. Created 6 years, 7 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 | « no previous file | mojo/apps/js/test/js_to_cpp_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 module js_to_cpp { 1 module js_to_cpp {
2 2
3 // This struct encompasses all of the basic types, so that they 3 // This struct encompasses all of the basic types, so that they
4 // may be sent from C++ to JS and back for validation. 4 // may be sent from C++ to JS and back for validation.
5 struct EchoArgs { 5 struct EchoArgs {
6 int64 si64; 6 int64 si64;
7 int32 si32; 7 int32 si32;
8 int16 si16; 8 int16 si16;
9 int8 si8; 9 int8 si8;
10 uint64 ui64; 10 uint64 ui64;
(...skipping 12 matching lines...) Expand all
23 handle<data_pipe_consumer> data_handle; 23 handle<data_pipe_consumer> data_handle;
24 }; 24 };
25 25
26 struct EchoArgsList { 26 struct EchoArgsList {
27 EchoArgsList next; 27 EchoArgsList next;
28 EchoArgs item; 28 EchoArgs item;
29 }; 29 };
30 30
31 interface CppSide { 31 interface CppSide {
32 StartTest(); // Sent for all tests to notify that the JS side is now ready. 32 StartTest(); // Sent for all tests to notify that the JS side is now ready.
33 TestFinished(); // Sent in echo / bit-flip tests to indicate end. 33 TestFinished(); // Indicates end for echo, bit-flip, and back-pointer tests.
34 PingResponse(); 34 PingResponse();
35 EchoResponse(EchoArgsList list); 35 EchoResponse(EchoArgsList list);
36 BitFlipResponse(EchoArgs arg); 36 BitFlipResponse(EchoArgsList arg);
37 BackPointerResponse(EchoArgsList arg);
37 }; 38 };
38 39
39 [Client=CppSide] 40 [Client=CppSide]
40 interface JsSide { 41 interface JsSide {
41 Ping(); 42 Ping();
42 Echo(int32 numIterations, EchoArgsList list); 43 Echo(int32 numIterations, EchoArgs arg);
43 BitFlip(EchoArgs arg); 44 BitFlip(EchoArgs arg);
45 BackPointer(EchoArgs arg);
44 }; 46 };
45 47
46 } 48 }
OLDNEW
« no previous file with comments | « no previous file | mojo/apps/js/test/js_to_cpp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698