OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MASH_TEST_TEST_SUITE_H_ | 5 #ifndef MASH_TEST_TEST_SUITE_H_ |
6 #define MASH_TEST_TEST_SUITE_H_ | 6 #define MASH_TEST_TEST_SUITE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/test/test_discardable_memory_allocator.h" | 11 #include "base/test/test_discardable_memory_allocator.h" |
12 #include "base/test/test_suite.h" | 12 #include "base/test/test_suite.h" |
13 | 13 |
14 namespace aura { | 14 namespace aura { |
15 class Env; | 15 class Env; |
16 } | 16 } |
17 | 17 |
| 18 namespace ui { |
| 19 class FakeContextFactory; |
| 20 } |
| 21 |
18 namespace mash { | 22 namespace mash { |
19 namespace test { | 23 namespace test { |
20 | 24 |
21 class TestContextFactory; | |
22 | |
23 class MashTestSuite : public base::TestSuite { | 25 class MashTestSuite : public base::TestSuite { |
24 public: | 26 public: |
25 MashTestSuite(int argc, char** argv); | 27 MashTestSuite(int argc, char** argv); |
26 ~MashTestSuite() override; | 28 ~MashTestSuite() override; |
27 | 29 |
28 protected: | 30 protected: |
29 // base::TestSuite: | 31 // base::TestSuite: |
30 void Initialize() override; | 32 void Initialize() override; |
31 void Shutdown() override; | 33 void Shutdown() override; |
32 | 34 |
33 private: | 35 private: |
34 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; | 36 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; |
35 std::unique_ptr<aura::Env> env_; | 37 std::unique_ptr<aura::Env> env_; |
36 std::unique_ptr<TestContextFactory> compositor_context_factory_; | 38 std::unique_ptr<ui::FakeContextFactory> context_factory_; |
37 | 39 |
38 DISALLOW_COPY_AND_ASSIGN(MashTestSuite); | 40 DISALLOW_COPY_AND_ASSIGN(MashTestSuite); |
39 }; | 41 }; |
40 | 42 |
41 } // namespace test | 43 } // namespace test |
42 } // namespace mash | 44 } // namespace mash |
43 | 45 |
44 #endif // MASH_TEST_TEST_SUITE_H_ | 46 #endif // MASH_TEST_TEST_SUITE_H_ |
OLD | NEW |