| 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 8139fe433efebde88306aab20271e0e1b1aeea50..c15ff0291a7b74d3df324f98c6ad333d626bdc10 100644
|
| --- a/mojo/public/cpp/bindings/tests/validation_unittest.cc
|
| +++ b/mojo/public/cpp/bindings/tests/validation_unittest.cc
|
| @@ -371,6 +371,16 @@ TEST_F(ValidationTest, Conformance) {
|
| RunValidationTests("conformance_", validators.GetHead());
|
| }
|
|
|
| +// This test is similar to the Conformance test but for responses.
|
| +TEST_F(ValidationTest, ResponseConformance) {
|
| + DummyMessageReceiver dummy_receiver;
|
| + mojo::internal::FilterChain validators(&dummy_receiver);
|
| + validators.Append<mojo::internal::MessageHeaderValidator>();
|
| + validators.Append<ConformanceTestInterface::ResponseValidator_>();
|
| +
|
| + RunValidationTests("resp_conformance_", validators.GetHead());
|
| +}
|
| +
|
| // Test that InterfacePtr<X> applies the correct validators and they don't
|
| // conflict with each other:
|
| // - MessageHeaderValidator
|
|
|