Index: mojo/public/interfaces/bindings/tests/test_native_types.mojom |
diff --git a/mojo/public/interfaces/bindings/tests/test_native_types.mojom b/mojo/public/interfaces/bindings/tests/test_native_types.mojom |
index 0a3a1974913ad9a33e150f5c3b11bb25358e23a5..10127563365e9bf38bf25d87f66dafaf0706b23d 100644 |
--- a/mojo/public/interfaces/bindings/tests/test_native_types.mojom |
+++ b/mojo/public/interfaces/bindings/tests/test_native_types.mojom |
@@ -4,6 +4,8 @@ |
module mojo.test; |
+import "mojo/public/interfaces/bindings/tests/rect.mojom"; |
+ |
// Used to verify that structs can be declared with no body in mojom. |
[native=True] |
@@ -12,3 +14,12 @@ struct PickledStruct; |
interface PicklePasser { |
PassPickle(PickledStruct pickle) => (PickledStruct passed); |
}; |
+ |
+// Used to verify support for native serialization of mojom-defined structs. |
+// This is tested with a typemap applied to the Rect type from rect.mojom. |
+ |
+interface RectService { |
+ AddRect(Rect r); |
+ GetLargestRect() => (Rect largest); |
+}; |
+ |