OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "mojo/common/test/multiprocess_test_base.h" |
| 6 |
| 7 namespace mojo { |
| 8 namespace { |
| 9 |
| 10 class MultiprocessTestBaseTest : public test::MultiprocessTestBase { |
| 11 }; |
| 12 |
| 13 TEST_F(MultiprocessTestBaseTest, RunChild) { |
| 14 StartChild("RunChild"); |
| 15 EXPECT_EQ(123, WaitForChildShutdown()); |
| 16 } |
| 17 |
| 18 MOJO_MULTIPROCESS_TEST_CHILD_MAIN(RunChild) { |
| 19 return 123; |
| 20 } |
| 21 |
| 22 TEST_F(MultiprocessTestBaseTest, TestChildMainNotFound) { |
| 23 StartChild("NoSuchTestChildMain"); |
| 24 int result = WaitForChildShutdown(); |
| 25 EXPECT_FALSE(result >= 0 && result <= 127); |
| 26 } |
| 27 |
| 28 } // namespace |
| 29 } // namespace mojo |
OLD | NEW |