Index: mojo/public/cpp/bindings/tests/validation_unittest.cc |
diff --git a/mojo/public/cpp/bindings/tests/validation_unittest.cc b/mojo/public/cpp/bindings/tests/validation_unittest.cc |
index 0d4a71f31896cc17b60b06eac59a4310757a988d..f3ff9abc21b896146c261310ab9041a555d4ac14 100644 |
--- a/mojo/public/cpp/bindings/tests/validation_unittest.cc |
+++ b/mojo/public/cpp/bindings/tests/validation_unittest.cc |
@@ -22,6 +22,7 @@ |
#include "mojo/public/cpp/bindings/tests/validation_test_input_parser.h" |
#include "mojo/public/cpp/system/core.h" |
#include "mojo/public/cpp/test_support/test_support.h" |
+#include "mojo/public/interfaces/bindings/tests/validation_test_associated_interfaces.mojom.h" |
#include "mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -369,6 +370,15 @@ TEST_F(ValidationTest, Conformance) { |
RunValidationTests("conformance_", validators.GetHead()); |
} |
+TEST_F(ValidationTest, AssociatedConformace) { |
+ DummyMessageReceiver dummy_receiver; |
+ mojo::internal::FilterChain validators(&dummy_receiver); |
+ validators.Append<mojo::internal::MessageHeaderValidator>(); |
+ validators.Append<AssociatedConformanceTestInterface::RequestValidator_>(); |
+ |
+ RunValidationTests("associated_conformance_", validators.GetHead()); |
+} |
+ |
// This test is similar to Conformance test but its goal is specifically |
// do bounds-check testing of message validation. For example we test the |
// detection of off-by-one errors in method ordinals. |