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 COMPONENTS_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_TEST_SUITE_H_ | 5 #ifndef COMPONENTS_VIZ_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_TEST_SUITE_H_ |
6 #define COMPONENTS_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_TEST_SUITE_H_ | 6 #define COMPONENTS_VIZ_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_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 base { | 14 namespace base { |
15 class MessageLoop; | 15 class MessageLoop; |
16 } | 16 } |
17 | 17 |
18 namespace display_compositor { | 18 namespace viz { |
19 | 19 |
20 class DisplayCompositorTestSuite : public base::TestSuite { | 20 class DisplayCompositorTestSuite : public base::TestSuite { |
21 public: | 21 public: |
22 DisplayCompositorTestSuite(int argc, char** argv); | 22 DisplayCompositorTestSuite(int argc, char** argv); |
23 ~DisplayCompositorTestSuite() override; | 23 ~DisplayCompositorTestSuite() override; |
24 | 24 |
25 protected: | 25 protected: |
26 // Overridden from base::TestSuite: | 26 // Overridden from base::TestSuite: |
27 void Initialize() override; | 27 void Initialize() override; |
28 void Shutdown() override; | 28 void Shutdown() override; |
29 | 29 |
30 private: | 30 private: |
31 std::unique_ptr<base::MessageLoop> message_loop_; | 31 std::unique_ptr<base::MessageLoop> message_loop_; |
32 | 32 |
33 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; | 33 base::TestDiscardableMemoryAllocator discardable_memory_allocator_; |
34 DISALLOW_COPY_AND_ASSIGN(DisplayCompositorTestSuite); | 34 DISALLOW_COPY_AND_ASSIGN(DisplayCompositorTestSuite); |
35 }; | 35 }; |
36 | 36 |
37 } // namespace display_compositor | 37 } // namespace viz |
38 | 38 |
39 #endif // COMPONENTS_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_TEST_SUITE_H_ | 39 #endif // COMPONENTS_VIZ_DISPLAY_COMPOSITOR_DISPLAY_COMPOSITOR_TEST_SUITE_H_ |
OLD | NEW |