| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 const char* error_inputs[] = { | 357 const char* error_inputs[] = { |
| 358 "/ hello world", | 358 "/ hello world", |
| 359 "[u1]x", | 359 "[u1]x", |
| 360 "[u2]-1000", | 360 "[u2]-1000", |
| 361 "[u1]0x100", | 361 "[u1]0x100", |
| 362 "[s2]-0x8001", | 362 "[s2]-0x8001", |
| 363 "[b]1", | 363 "[b]1", |
| 364 "[b]1111111k", | 364 "[b]1111111k", |
| 365 "[dist4]unmatched", | 365 "[dist4]unmatched", |
| 366 "[anchr]hello [dist8]hello", | 366 "[anchr]hello [dist8]hello", |
| 367 "[dist4]a [dist4]a [anchr]a", |
| 368 "[dist4]a [anchr]a [dist4]a [anchr]a", |
| 367 "0 [handles]50", | 369 "0 [handles]50", |
| 368 NULL | 370 NULL |
| 369 }; | 371 }; |
| 370 | 372 |
| 371 for (size_t i = 0; error_inputs[i]; ++i) { | 373 for (size_t i = 0; error_inputs[i]; ++i) { |
| 372 std::vector<uint8_t> expected; | 374 std::vector<uint8_t> expected; |
| 373 if (!TestInputParser(error_inputs[i], false, expected, 0)) | 375 if (!TestInputParser(error_inputs[i], false, expected, 0)) |
| 374 ADD_FAILURE() << "Unexpected test result for: " << error_inputs[i]; | 376 ADD_FAILURE() << "Unexpected test result for: " << error_inputs[i]; |
| 375 } | 377 } |
| 376 } | 378 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 IntegrationTestInterface1Impl* interface1_impl = | 414 IntegrationTestInterface1Impl* interface1_impl = |
| 413 BindToPipe(new IntegrationTestInterface1Impl(), testee_endpoint().Pass()); | 415 BindToPipe(new IntegrationTestInterface1Impl(), testee_endpoint().Pass()); |
| 414 interface1_impl->internal_state()->router()->EnableTestingMode(); | 416 interface1_impl->internal_state()->router()->EnableTestingMode(); |
| 415 | 417 |
| 416 RunValidationTests("integration_", test_message_receiver()); | 418 RunValidationTests("integration_", test_message_receiver()); |
| 417 } | 419 } |
| 418 | 420 |
| 419 } // namespace | 421 } // namespace |
| 420 } // namespace test | 422 } // namespace test |
| 421 } // namespace mojo | 423 } // namespace mojo |
| OLD | NEW |