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

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: Created 6 years, 5 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
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..bfdf05016196dda091fb940f155bf39a11a7e13d
--- /dev/null
+++ b/mojo/examples/test/example_service.mojom
@@ -0,0 +1,24 @@
+// 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 {
+
+// TODO(msw): Based on mojo/services/dbus_echo/echo.mojom ...
+// TODO(msw): Combine with mojo/service_manager/test.mojom ???
+// TODO(msw): Replace with mojo/public/interfaces/bindings/tests/sample_service.mojom ???
+// TODO(msw): Replace with mojo/services/test_service/test_service.mojom ???
+[Client=ExampleClient]
+interface ExampleService {
+ // Calls the supplied callback with the supplied string.
+ Echo(string to_echo) => (string echoed);
+
+ // Calls ExampleClient::Pong with the supplied value.
+ Ping(uint16 ping_value);
+};
+
+interface ExampleClient {
+ Pong(uint16 pong_value);
+};
+
+}
« no previous file with comments | « no previous file | mojo/examples/test/example_service_application.h » ('j') | mojo/examples/test/example_service_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698