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

Unified Diff: mojo/apps/js/test/js_to_cpp.mojom

Issue 282063003: Fix handling of null pointers in JS bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/apps/js/test/js_to_cpp_unittest.cc » ('j') | mojo/apps/js/test/js_to_cpp_unittest.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/test/js_to_cpp.mojom
diff --git a/mojo/apps/js/test/js_to_cpp.mojom b/mojo/apps/js/test/js_to_cpp.mojom
index 509f2f701abbb8dc140148d0bb7117942ceaaf82..0f16f7fce978d17de8167b6223e610e4bbaf3746 100644
--- a/mojo/apps/js/test/js_to_cpp.mojom
+++ b/mojo/apps/js/test/js_to_cpp.mojom
@@ -23,18 +23,23 @@ struct EchoArgs {
handle<data_pipe_consumer> data_handle;
};
+struct EchoArgsList {
+ EchoArgsList next;
+ EchoArgs item;
+};
+
interface CppSide {
StartTest(); // Sent for all tests to notify that the JS side is now ready.
TestFinished(); // Sent in echo / bit-flip tests to indicate end.
PingResponse();
- EchoResponse(EchoArgs arg1, EchoArgs arg2);
+ EchoResponse(EchoArgsList list);
BitFlipResponse(EchoArgs arg);
};
[Client=CppSide]
interface JsSide {
Ping();
- Echo(int32 numIterations, EchoArgs arg);
+ Echo(int32 numIterations, EchoArgsList list);
BitFlip(EchoArgs arg);
};
« no previous file with comments | « no previous file | mojo/apps/js/test/js_to_cpp_unittest.cc » ('j') | mojo/apps/js/test/js_to_cpp_unittest.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698