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 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ |
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ | 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ |
7 | 7 |
8 #include "base/test/test_io_thread.h" | 8 #include "base/test/test_io_thread.h" |
9 #include "mojo/edk/embedder/simple_platform_support.h" | 9 #include "mojo/edk/embedder/simple_platform_support.h" |
10 #include "mojo/edk/system/channel.h" | 10 #include "mojo/edk/system/channel.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 base::TestIOThread test_io_thread_; | 42 base::TestIOThread test_io_thread_; |
43 scoped_refptr<Channel> channel_; | 43 scoped_refptr<Channel> channel_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(ChannelThread); | 45 DISALLOW_COPY_AND_ASSIGN(ChannelThread); |
46 }; | 46 }; |
47 | 47 |
48 #if !defined(OS_IOS) | 48 #if !defined(OS_IOS) |
49 class MultiprocessMessagePipeTestBase : public testing::Test { | 49 class MultiprocessMessagePipeTestBase : public testing::Test { |
50 public: | 50 public: |
51 MultiprocessMessagePipeTestBase(); | 51 MultiprocessMessagePipeTestBase(); |
52 virtual ~MultiprocessMessagePipeTestBase(); | 52 ~MultiprocessMessagePipeTestBase() override; |
53 | 53 |
54 protected: | 54 protected: |
55 void Init(scoped_refptr<ChannelEndpoint> ep); | 55 void Init(scoped_refptr<ChannelEndpoint> ep); |
56 | 56 |
57 embedder::PlatformSupport* platform_support() { return &platform_support_; } | 57 embedder::PlatformSupport* platform_support() { return &platform_support_; } |
58 mojo::test::MultiprocessTestHelper* helper() { return &helper_; } | 58 mojo::test::MultiprocessTestHelper* helper() { return &helper_; } |
59 | 59 |
60 private: | 60 private: |
61 embedder::SimplePlatformSupport platform_support_; | 61 embedder::SimplePlatformSupport platform_support_; |
62 ChannelThread channel_thread_; | 62 ChannelThread channel_thread_; |
63 mojo::test::MultiprocessTestHelper helper_; | 63 mojo::test::MultiprocessTestHelper helper_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(MultiprocessMessagePipeTestBase); | 65 DISALLOW_COPY_AND_ASSIGN(MultiprocessMessagePipeTestBase); |
66 }; | 66 }; |
67 #endif | 67 #endif |
68 | 68 |
69 } // namespace test | 69 } // namespace test |
70 } // namespace system | 70 } // namespace system |
71 } // namespace mojo | 71 } // namespace mojo |
72 | 72 |
73 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ | 73 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_TEST_UTILS_H_ |
OLD | NEW |