| 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 namespace test { |
| 17 class TestContextFactory; |
| 18 } |
| 16 } | 19 } |
| 17 | 20 |
| 18 namespace mash { | 21 namespace mash { |
| 19 namespace test { | 22 namespace test { |
| 20 | 23 |
| 21 class TestContextFactory; | 24 class TestContextFactoryPrivate; |
| 22 | 25 |
| 23 class MashTestSuite : public base::TestSuite { | 26 class MashTestSuite : public base::TestSuite { |
| 24 public: | 27 public: |
| 25 MashTestSuite(int argc, char** argv); | 28 MashTestSuite(int argc, char** argv); |
| 26 ~MashTestSuite() override; | 29 ~MashTestSuite() override; |
| 27 | 30 |
| 28 protected: | 31 protected: |
| 29 // base::TestSuite: | 32 // base::TestSuite: |
| 30 void Initialize() override; | 33 void Initialize() override; |
| 31 void Shutdown() override; | 34 void Shutdown() override; |
| 32 | 35 |
| 33 private: | 36 private: |
| 34 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; | 37 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; |
| 35 std::unique_ptr<aura::Env> env_; | 38 std::unique_ptr<aura::Env> env_; |
| 36 std::unique_ptr<TestContextFactory> compositor_context_factory_; | 39 std::unique_ptr<aura::test::TestContextFactory> context_factory_; |
| 40 std::unique_ptr<TestContextFactoryPrivate> context_factory_private_; |
| 37 | 41 |
| 38 DISALLOW_COPY_AND_ASSIGN(MashTestSuite); | 42 DISALLOW_COPY_AND_ASSIGN(MashTestSuite); |
| 39 }; | 43 }; |
| 40 | 44 |
| 41 } // namespace test | 45 } // namespace test |
| 42 } // namespace mash | 46 } // namespace mash |
| 43 | 47 |
| 44 #endif // MASH_TEST_TEST_SUITE_H_ | 48 #endif // MASH_TEST_TEST_SUITE_H_ |
| OLD | NEW |