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 "mojo/embedder/embedder.h" | 5 #include "mojo/embedder/embedder.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 MOJO_DEADLINE_INDEFINITE)); | 449 MOJO_DEADLINE_INDEFINITE)); |
450 #endif | 450 #endif |
451 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(mp2)); | 451 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(mp2)); |
452 } | 452 } |
453 | 453 |
454 EXPECT_TRUE(multiprocess_test_helper.WaitForChildTestShutdown()); | 454 EXPECT_TRUE(multiprocess_test_helper.WaitForChildTestShutdown()); |
455 EXPECT_TRUE(test::Shutdown()); | 455 EXPECT_TRUE(test::Shutdown()); |
456 } | 456 } |
457 | 457 |
458 MOJO_MULTIPROCESS_TEST_CHILD_TEST(MultiprocessChannelsClient) { | 458 MOJO_MULTIPROCESS_TEST_CHILD_TEST(MultiprocessChannelsClient) { |
459 embedder::ScopedPlatformHandle client_platform_handle = | 459 ScopedPlatformHandle client_platform_handle = |
460 mojo::test::MultiprocessTestHelper::client_platform_handle.Pass(); | 460 mojo::test::MultiprocessTestHelper::client_platform_handle.Pass(); |
461 EXPECT_TRUE(client_platform_handle.is_valid()); | 461 EXPECT_TRUE(client_platform_handle.is_valid()); |
462 | 462 |
463 system::test::TestIOThread test_io_thread( | 463 system::test::TestIOThread test_io_thread( |
464 system::test::TestIOThread::kAutoStart); | 464 system::test::TestIOThread::kAutoStart); |
465 Init(); | 465 Init(); |
466 | 466 |
467 { | 467 { |
468 ScopedTestChannel client_channel(test_io_thread.task_runner(), | 468 ScopedTestChannel client_channel(test_io_thread.task_runner(), |
469 client_platform_handle.Pass()); | 469 client_platform_handle.Pass()); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 581 |
582 EXPECT_TRUE(test::Shutdown()); | 582 EXPECT_TRUE(test::Shutdown()); |
583 } | 583 } |
584 | 584 |
585 // TODO(vtl): Test immediate write & close. | 585 // TODO(vtl): Test immediate write & close. |
586 // TODO(vtl): Test broken-connection cases. | 586 // TODO(vtl): Test broken-connection cases. |
587 | 587 |
588 } // namespace | 588 } // namespace |
589 } // namespace embedder | 589 } // namespace embedder |
590 } // namespace mojo | 590 } // namespace mojo |
OLD | NEW |