OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_TEST_ASH_TEST_SUITE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_SUITE_H_ |
6 #define ASH_TEST_ASH_TEST_SUITE_H_ | 6 #define ASH_TEST_ASH_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 #include "ui/aura/env.h" | 13 #include "ui/aura/env.h" |
14 | 14 |
15 namespace ui { | |
16 class FakeContextFactory; | |
17 } | |
18 | |
15 namespace ash { | 19 namespace ash { |
16 namespace test { | 20 namespace test { |
17 | 21 |
18 class AshTestSuite : public base::TestSuite { | 22 class AshTestSuite : public base::TestSuite { |
19 public: | 23 public: |
20 AshTestSuite(int argc, char** argv); | 24 AshTestSuite(int argc, char** argv); |
21 ~AshTestSuite() override; | 25 ~AshTestSuite() override; |
22 | 26 |
23 protected: | 27 protected: |
24 // base::TestSuite: | 28 // base::TestSuite: |
25 void Initialize() override; | 29 void Initialize() override; |
26 void Shutdown() override; | 30 void Shutdown() override; |
27 | 31 |
28 private: | 32 private: |
29 std::unique_ptr<aura::Env> env_; | 33 std::unique_ptr<aura::Env> env_; |
30 | 34 |
31 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; | 35 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; |
32 | 36 |
37 // Only used when running in Config::MUS. | |
msw
2017/03/30 23:06:05
nit: explain what it's used for?
sky
2017/03/30 23:35:46
Done.
| |
38 std::unique_ptr<ui::FakeContextFactory> context_factory_; | |
39 | |
33 DISALLOW_COPY_AND_ASSIGN(AshTestSuite); | 40 DISALLOW_COPY_AND_ASSIGN(AshTestSuite); |
34 }; | 41 }; |
35 | 42 |
36 } // namespace test | 43 } // namespace test |
37 } // namespace ash | 44 } // namespace ash |
38 | 45 |
39 #endif // ASH_TEST_ASH_TEST_SUITE_H_ | 46 #endif // ASH_TEST_ASH_TEST_SUITE_H_ |
OLD | NEW |