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 #ifndef MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ | 5 #ifndef MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ |
6 #define MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ | 6 #define MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ |
7 | 7 |
8 #include "base/synchronization/lock.h" | 8 #include "base/synchronization/lock.h" |
9 #include "mojo/edk/embedder/embedder_internal.h" | 9 #include "mojo/edk/embedder/embedder_internal.h" |
10 #include "mojo/edk/system/test_utils.h" | 10 #include "mojo/edk/system/test_utils.h" |
11 #include "mojo/public/c/system/types.h" | 11 #include "mojo/public/c/system/types.h" |
12 #include "mojo/public/cpp/system/macros.h" | 12 #include "mojo/public/cpp/system/macros.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace edk { | 16 namespace edk { |
17 | 17 |
18 class Core; | 18 class Core; |
19 class Awakable; | 19 class Awakable; |
20 | 20 |
21 namespace test { | 21 namespace test { |
22 | 22 |
23 class CoreTestBase_MockHandleInfo; | 23 class CoreTestBase_MockHandleInfo; |
24 | 24 |
25 class CoreTestBase : public MojoSystemTest { | 25 class CoreTestBase : public testing::Test { |
26 public: | 26 public: |
27 using MockHandleInfo = CoreTestBase_MockHandleInfo; | 27 using MockHandleInfo = CoreTestBase_MockHandleInfo; |
28 | 28 |
29 CoreTestBase(); | 29 CoreTestBase(); |
30 ~CoreTestBase() override; | 30 ~CoreTestBase() override; |
31 | 31 |
32 protected: | 32 protected: |
33 // |info| must remain alive until the returned handle is closed. | 33 // |info| must remain alive until the returned handle is closed. |
34 MojoHandle CreateMockHandle(MockHandleInfo* info); | 34 MojoHandle CreateMockHandle(MockHandleInfo* info); |
35 | 35 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 std::vector<Awakable*> added_awakables_; | 103 std::vector<Awakable*> added_awakables_; |
104 | 104 |
105 MOJO_DISALLOW_COPY_AND_ASSIGN(CoreTestBase_MockHandleInfo); | 105 MOJO_DISALLOW_COPY_AND_ASSIGN(CoreTestBase_MockHandleInfo); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace test | 108 } // namespace test |
109 } // namespace edk | 109 } // namespace edk |
110 } // namespace mojo | 110 } // namespace mojo |
111 | 111 |
112 #endif // MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ | 112 #endif // MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ |
OLD | NEW |