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 ASH_TEST_ASH_TEST_H_ | 5 #ifndef ASH_TEST_ASH_TEST_H_ |
6 #define ASH_TEST_ASH_TEST_H_ | 6 #define ASH_TEST_ASH_TEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 WmWindow* window() { return window_; } | 48 WmWindow* window() { return window_; } |
49 | 49 |
50 private: | 50 private: |
51 WmWindow* window_; | 51 WmWindow* window_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(WindowOwner); | 53 DISALLOW_COPY_AND_ASSIGN(WindowOwner); |
54 }; | 54 }; |
55 | 55 |
56 // Base class for ash tests. This class calls through to AshTestImpl for the | 56 // Base class for ash tests. This class calls through to AshTestImpl for the |
57 // real implementation. This class exists so that tests can be written to | 57 // real implementation. This class exists so that tests can be written to |
58 // ash/common and run in both mus and aura. | 58 // run in both mus and aura. |
59 // | 59 // |
60 // TODO: this class is deprecated and should be removed. | 60 // TODO: this class is deprecated and should be removed. |
61 // http://crbug.com/707057. | 61 // http://crbug.com/707057. |
62 class AshTest : public testing::Test { | 62 class AshTest : public testing::Test { |
63 public: | 63 public: |
64 AshTest(); | 64 AshTest(); |
65 ~AshTest() override; | 65 ~AshTest() override; |
66 | 66 |
67 // Returns the WmShelf for the primary display. | 67 // Returns the WmShelf for the primary display. |
68 static WmShelf* GetPrimaryShelf(); | 68 static WmShelf* GetPrimaryShelf(); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 private: | 140 private: |
141 std::unique_ptr<AshTestImpl> test_impl_; | 141 std::unique_ptr<AshTestImpl> test_impl_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(AshTest); | 143 DISALLOW_COPY_AND_ASSIGN(AshTest); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace ash | 146 } // namespace ash |
147 | 147 |
148 #endif // ASH_TEST_ASH_TEST_H_ | 148 #endif // ASH_TEST_ASH_TEST_H_ |
OLD | NEW |