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

Unified Diff: mojo/examples/test/example_service.mojom

Issue 399653004: Add a Mojo example apptest that runs in mojo_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address most remaining comments. Created 6 years, 4 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 | « mojo/examples/test/example_apptest.cc ('k') | mojo/examples/test/example_service_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/test/example_service.mojom
diff --git a/mojo/examples/test/example_service.mojom b/mojo/examples/test/example_service.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..0079653c5e8c37a494b6136cbd89322c6e5f921f
--- /dev/null
+++ b/mojo/examples/test/example_service.mojom
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mojo {
+
+// A simple service used for unit testing experimentation.
+// TODO(msw): Dedup: mojo/services/dbus_echo/echo.mojom
+// mojo/service_manager/test.mojom
+// mojo/public/interfaces/bindings/tests/sample_service.mojom
+// mojo/services/test_service/test_service.mojom
+[Client=ExampleClient]
+interface ExampleService {
+ // Calls ExampleClient::Pong with |ping_value|.
+ Ping(uint16 ping_value);
+
+ // Runs the argument callback.
+ RunCallback() => ();
+};
+
+interface ExampleClient {
+ Pong(uint16 pong_value);
+};
+
+}
« no previous file with comments | « mojo/examples/test/example_apptest.cc ('k') | mojo/examples/test/example_service_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698