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

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

Issue 295583005: Update mojom example files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix js tests 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
Index: mojo/public/interfaces/bindings/tests/sample_service.mojom
diff --git a/mojo/public/interfaces/bindings/tests/sample_service.mojom b/mojo/public/interfaces/bindings/tests/sample_service.mojom
index 384136558e78bad11056417931b185fe55770883..d4327a4964cfa234d7f5b4c039db64027be12f47 100644
--- a/mojo/public/interfaces/bindings/tests/sample_service.mojom
+++ b/mojo/public/interfaces/bindings/tests/sample_service.mojom
@@ -5,7 +5,7 @@
import "sample_import.mojom"
import "sample_import2.mojom"
-[JavaPackage="org.chromium.mojo.bindings.test"]
+[JavaPackage="org.chromium.mojo.bindings.test.sample"]
module sample {
const uint8 kThree = 3;
@@ -38,7 +38,8 @@ struct Foo {
handle<message_pipe> source @9;
handle<data_pipe_consumer>[] input_streams @10;
handle<data_pipe_producer>[] output_streams @11;
- bool[][] array_of_array_of_bools @12;
+ bool[][] array_of_array_of_bools = [[true], [false, true]] @12;
+ string[][][] multi_array_of_strings @13;
};
struct DefaultsTestInner {
@@ -56,6 +57,17 @@ struct DefaultsTest {
Bar.Type bar_type = Bar.TYPE_BOTH;
};
+struct StructWithHoleV1 {
+ int32 v1 = 1;
+ int64 v2 = 2;
+};
+
+struct StructWithHoleV2 {
+ int32 v1 = 1;
+ int64 v2 = 2;
+ int32 v3 = 3;
+};
+
[Client=ServiceClient]
interface Service {
enum BazOptions {

Powered by Google App Engine
This is Rietveld 408576698