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/edk/system/message_pipe_test_utils.h" | 5 #include "mojo/edk/system/message_pipe_test_utils.h" |
6 | 6 |
7 #include "mojo/edk/system/test_utils.h" | 7 #include "mojo/edk/system/test_utils.h" |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 namespace edk { | 10 namespace edk { |
11 namespace test { | 11 namespace test { |
12 | 12 |
13 #if !defined(OS_IOS) | 13 #if !defined(OS_IOS) |
14 MultiprocessMessagePipeTestBase::MultiprocessMessagePipeTestBase() | 14 MultiprocessMessagePipeTestBase::MultiprocessMessagePipeTestBase() { |
15 : test_io_thread_(base::TestIOThread::kAutoStart), | |
16 ipc_support_(test_io_thread_.task_runner()) { | |
17 } | |
18 | |
19 MultiprocessMessagePipeTestBase::MultiprocessMessagePipeTestBase( | |
20 base::MessageLoop::Type main_message_loop_type) | |
21 : message_loop_(main_message_loop_type), | |
22 test_io_thread_(base::TestIOThread::kAutoStart), | |
23 ipc_support_(test_io_thread_.task_runner()) { | |
24 } | 15 } |
25 | 16 |
26 MultiprocessMessagePipeTestBase::~MultiprocessMessagePipeTestBase() { | 17 MultiprocessMessagePipeTestBase::~MultiprocessMessagePipeTestBase() { |
27 } | 18 } |
28 #endif | 19 #endif |
29 | 20 |
30 } // namespace test | 21 } // namespace test |
31 } // namespace edk | 22 } // namespace edk |
32 } // namespace mojo | 23 } // namespace mojo |
OLD | NEW |