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

Unified Diff: mojo/public/interfaces/bindings/tests/js_to_cpp.mojom

Issue 268593002: Move existing Mojo JS <--> CPP tests out of webui test harness. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused header include. 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 side-by-side diff with in-line comments
Download patch
« mojo/apps/js/test/js_to_cpp_unittest.cc ('K') | « mojo/mojo_public.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/interfaces/bindings/tests/js_to_cpp.mojom
diff --git a/content/test/data/web_ui_test_mojo_bindings.mojom b/mojo/public/interfaces/bindings/tests/js_to_cpp.mojom
similarity index 77%
copy from content/test/data/web_ui_test_mojo_bindings.mojom
copy to mojo/public/interfaces/bindings/tests/js_to_cpp.mojom
index 9ffd38529a320397c935a60339094bc5459d1f67..0c96335796da2ad26230c80d711ca57f10ca5227 100644
--- a/content/test/data/web_ui_test_mojo_bindings.mojom
+++ b/mojo/public/interfaces/bindings/tests/js_to_cpp.mojom
@@ -1,4 +1,4 @@
-module mojo {
sky 2014/05/01 03:20:38 I think this would better fit right next to the te
Tom Sepez 2014/05/01 17:48:26 I'm confused. Are you talking about the module sta
+module js_to_cpp {
// This struct encompasses all of the basic types, so that they
// may be sent from C++ to JS and back for validation.
@@ -21,14 +21,15 @@ struct EchoArgs {
string[] string_array;
};
-[Peer=RendererTarget]
-interface BrowserTarget {
+[Peer=JsSide]
+interface CppSide {
+ StartTest(); // Sent to notify that the JS side is now ready.
PingResponse();
EchoResponse(EchoArgs arg1, EchoArgs arg2);
};
-[Peer=BrowserTarget]
-interface RendererTarget {
+[Peer=CppSide]
+interface JsSide {
Ping();
Echo(EchoArgs arg);
};
« mojo/apps/js/test/js_to_cpp_unittest.cc ('K') | « mojo/mojo_public.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698