Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: mojo/edk/system/core_test_base.h

Issue 898623002: Make mojo::system::Core not own the PlatformSupport. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: foo Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/edk/system/core.cc ('k') | mojo/edk/system/core_test_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/compiler_specific.h"
9 #include "base/macros.h" 8 #include "base/macros.h"
10 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "mojo/edk/embedder/simple_platform_support.h"
11 #include "mojo/public/c/system/types.h" 11 #include "mojo/public/c/system/types.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace mojo { 14 namespace mojo {
15 namespace system { 15 namespace system {
16 16
17 class Core; 17 class Core;
18 class Awakable; 18 class Awakable;
19 19
20 namespace test { 20 namespace test {
(...skipping 10 matching lines...) Expand all
31 void SetUp() override; 31 void SetUp() override;
32 void TearDown() override; 32 void TearDown() override;
33 33
34 protected: 34 protected:
35 // |info| must remain alive until the returned handle is closed. 35 // |info| must remain alive until the returned handle is closed.
36 MojoHandle CreateMockHandle(MockHandleInfo* info); 36 MojoHandle CreateMockHandle(MockHandleInfo* info);
37 37
38 Core* core() { return core_; } 38 Core* core() { return core_; }
39 39
40 private: 40 private:
41 embedder::SimplePlatformSupport platform_support_;
41 Core* core_; 42 Core* core_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(CoreTestBase); 44 DISALLOW_COPY_AND_ASSIGN(CoreTestBase);
44 }; 45 };
45 46
46 class CoreTestBase_MockHandleInfo { 47 class CoreTestBase_MockHandleInfo {
47 public: 48 public:
48 CoreTestBase_MockHandleInfo(); 49 CoreTestBase_MockHandleInfo();
49 ~CoreTestBase_MockHandleInfo(); 50 ~CoreTestBase_MockHandleInfo();
50 51
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 std::vector<Awakable*> added_awakables_; 108 std::vector<Awakable*> added_awakables_;
108 109
109 DISALLOW_COPY_AND_ASSIGN(CoreTestBase_MockHandleInfo); 110 DISALLOW_COPY_AND_ASSIGN(CoreTestBase_MockHandleInfo);
110 }; 111 };
111 112
112 } // namespace test 113 } // namespace test
113 } // namespace system 114 } // namespace system
114 } // namespace mojo 115 } // namespace mojo
115 116
116 #endif // MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_ 117 #endif // MOJO_EDK_SYSTEM_CORE_TEST_BASE_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/core.cc ('k') | mojo/edk/system/core_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698