Index: third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom |
diff --git a/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom b/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom |
index 69c94ee8531f38c5da30dad568797ee7a95375a1..adebff8d3f1f0e96d90bfb72022a1b8d93cfeb7d 100644 |
--- a/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom |
+++ b/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom |
@@ -138,6 +138,9 @@ struct MapValueTypes { |
map<string, Rect?> f6; |
map<string, map<string, string>> f7; |
map<string, array<map<string, string>>> f8; |
+ map<string, handle> f9; |
+ map<string, array<handle>> f10; |
+ map<string, map<string, handle>> f11; |
}; |
// Used to verify that various array types can be encoded and decoded |
@@ -349,3 +352,14 @@ struct MultiVersionStructV7 { |
[MinVersion=7] |
bool f_bool; |
}; |
+ |
+// Used to verify that interfaces that are struct members can be defined in the |
+// same file. |
+ |
+interface SomeInterface { |
+ SomeMethod(RectPair pair) => (RectPair other_pair); |
+}; |
+ |
+struct ContainsInterface { |
+ SomeInterface some_interface; |
+}; |