OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdio.h> | 5 #include <stdio.h> |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 TEST_F(ValidationIntegrationTest, InterfaceImpl) { | 402 TEST_F(ValidationIntegrationTest, InterfaceImpl) { |
403 // Test that InterfaceImpl<X> applies the correct validators and they don't | 403 // Test that InterfaceImpl<X> applies the correct validators and they don't |
404 // conflict with each other: | 404 // conflict with each other: |
405 // - MessageHeaderValidator | 405 // - MessageHeaderValidator |
406 // - X::RequestValidator_ | 406 // - X::RequestValidator_ |
407 // - X::Client::ResponseValidator_ | 407 // - X::Client::ResponseValidator_ |
408 | 408 |
409 // |interface1_impl| will delete itself when the pipe is closed. | 409 // |interface1_impl| will delete itself when the pipe is closed. |
410 IntegrationTestInterface1Impl* interface1_impl = | 410 IntegrationTestInterface1Impl* interface1_impl = |
411 BindToPipe(new IntegrationTestInterface1Impl(), testee_endpoint().Pass()); | 411 BindToPipe(new IntegrationTestInterface1Impl(), testee_endpoint().Pass()); |
412 interface1_impl->internal_state()->router()->EnableTestingMode(); | 412 interface1_impl->internal_router()->EnableTestingMode(); |
413 | 413 |
414 RunValidationTests("integration_", test_message_receiver()); | 414 RunValidationTests("integration_", test_message_receiver()); |
415 } | 415 } |
416 | 416 |
417 } // namespace | 417 } // namespace |
418 } // namespace test | 418 } // namespace test |
419 } // namespace mojo | 419 } // namespace mojo |
OLD | NEW |