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

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

Issue 1713203002: Mojo C++ bindings: support sync methods - part 2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/public/interfaces/bindings/tests/test_sync_methods.mojom
diff --git a/mojo/public/interfaces/bindings/tests/test_sync_methods.mojom b/mojo/public/interfaces/bindings/tests/test_sync_methods.mojom
index 2df8a1c93c378f355e09cd19a82c882db456ce8d..1a55a0f32688af0fe5fc3f55c320a4d3090f9a30 100644
--- a/mojo/public/interfaces/bindings/tests/test_sync_methods.mojom
+++ b/mojo/public/interfaces/bindings/tests/test_sync_methods.mojom
@@ -4,16 +4,26 @@
module mojo.test;
-interface TestSync {
+interface TestCodeGeneration {
+ [Sync]
+ NoInput() => (int32 result);
+
+ [Sync]
+ NoOutput(int32 value) => ();
+
[Sync]
- Get() => (int32 result);
+ NoInOut() => ();
[Sync]
- Set(int32 value) => ();
+ HaveInOut(int32 value1, int32 value2) => (int32 result1, int32 result2);
+};
+interface TestSync {
[Sync]
Ping() => ();
[Sync]
Echo(int32 value) => (int32 result);
+
+ AsyncEcho(int32 value) => (int32 result);
};

Powered by Google App Engine
This is Rietveld 408576698