OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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/common/test/multiprocess_test_base.h" | 5 #include "mojo/common/test/multiprocess_test_base.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/process/kill.h" | 9 #include "base/process/kill.h" |
10 #include "base/process/process_handle.h" | 10 #include "base/process/process_handle.h" |
11 // TODO(vtl): Remove build_config.h include when fully implemented on Windows. | 11 // TODO(vtl): Remove build_config.h include when fully implemented on Windows. |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "mojo/system/platform_channel_pair.h" | 13 #include "mojo/system/embedder/platform_channel_pair.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace test { | 16 namespace test { |
17 | 17 |
18 MultiprocessTestBase::MultiprocessTestBase() | 18 MultiprocessTestBase::MultiprocessTestBase() |
19 : test_child_handle_(base::kNullProcessHandle) { | 19 : test_child_handle_(base::kNullProcessHandle) { |
20 } | 20 } |
21 | 21 |
22 MultiprocessTestBase::~MultiprocessTestBase() { | 22 MultiprocessTestBase::~MultiprocessTestBase() { |
23 CHECK_EQ(test_child_handle_, base::kNullProcessHandle); | 23 CHECK_EQ(test_child_handle_, base::kNullProcessHandle); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 embedder::PlatformChannelPair::PassClientHandleFromParentProcess( | 106 embedder::PlatformChannelPair::PassClientHandleFromParentProcess( |
107 *CommandLine::ForCurrentProcess()); | 107 *CommandLine::ForCurrentProcess()); |
108 #endif | 108 #endif |
109 } | 109 } |
110 | 110 |
111 // static | 111 // static |
112 embedder::ScopedPlatformHandle MultiprocessTestBase::client_platform_handle; | 112 embedder::ScopedPlatformHandle MultiprocessTestBase::client_platform_handle; |
113 | 113 |
114 } // namespace test | 114 } // namespace test |
115 } // namespace mojo | 115 } // namespace mojo |
OLD | NEW |