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

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

Issue 2286513002: Mojo C++ bindings: fix inlined union validation. (Closed)
Patch Set: add a test case Created 4 years, 4 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/validation_test_interfaces.mojom
diff --git a/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom b/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
index c46c0a5a403114c75e737456ff14064a6f86d4f2..705650bc18774a4cbc672337735c489d2e58c9b3 100644
--- a/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
+++ b/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
@@ -56,6 +56,11 @@ enum EnumB {
ENUM_B_2
};
+union UnionA {
+ StructA struct_a;
+ bool b;
+};
+
// This interface is used for testing bounds-checking in the mojom
// binding code. If you add a method please update the files
// ./data/validation/boundscheck_*. If you add a response please update
@@ -84,6 +89,7 @@ interface ConformanceTestInterface {
Method15(array<EnumA>? param0, array<EnumB>? param1);
Method16(map<EnumA, EnumA>? param0);
Method17(array<InterfaceA> param0);
+ Method18(UnionA? param0);
};
struct BasicStruct {

Powered by Google App Engine
This is Rietveld 408576698