Index: mojo/public/interfaces/bindings/tests/struct_with_traits.mojom |
diff --git a/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom b/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom |
index b50409ee88f37e31b54175fdf460cf1050bad277..f53a188c63c01c423b7848c9d064dfe52ccf63b5 100644 |
--- a/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom |
+++ b/mojo/public/interfaces/bindings/tests/struct_with_traits.mojom |
@@ -81,3 +81,9 @@ interface TraitsTestService { |
EchoUnionWithTraits(UnionWithTraits u) => (UnionWithTraits passed); |
}; |
+ |
+// Test that specifying default value for a typemapped enum field works. |
+struct EnumWithTraitsContainer { |
+ EnumWithTraits f_field = EnumWithTraits.VALUE_1; |
+}; |
+ |