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_COMMON_TEST_ASH_TEST_H_ | 5 #ifndef ASH_COMMON_TEST_ASH_TEST_H_ |
6 #define ASH_COMMON_TEST_ASH_TEST_H_ | 6 #define ASH_COMMON_TEST_ASH_TEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 WmWindow* window_; | 42 WmWindow* window_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(WindowOwner); | 44 DISALLOW_COPY_AND_ASSIGN(WindowOwner); |
45 }; | 45 }; |
46 | 46 |
47 // Base class for ash tests. This class calls through to AshTestImpl for the | 47 // Base class for ash tests. This class calls through to AshTestImpl for the |
48 // real implementation. This class exists so that tests can be written to | 48 // real implementation. This class exists so that tests can be written to |
49 // ash/common and run in both mus and aura. | 49 // ash/common and run in both mus and aura. |
50 // | 50 // |
51 // The implementation of AshTestImpl that is used depends upon gn targets. To | 51 // The implementation of AshTestImpl that is used depends upon gn targets. To |
52 // use the aura backend depend on "//ash:ash_with_aura_test_support." The mus | 52 // use the aura backend depend on "//ash/test:ash_with_aura_test_support." The |
53 // backend is not provided as a separate link target. | 53 // mus backend is not provided as a separate link target. |
54 class AshTest : public testing::Test { | 54 class AshTest : public testing::Test { |
55 public: | 55 public: |
56 AshTest(); | 56 AshTest(); |
57 ~AshTest() override; | 57 ~AshTest() override; |
58 | 58 |
59 // Returns the WmShelf for the primary display. | 59 // Returns the WmShelf for the primary display. |
60 static WmShelf* GetPrimaryShelf(); | 60 static WmShelf* GetPrimaryShelf(); |
61 | 61 |
62 bool SupportsMultipleDisplays() const; | 62 bool SupportsMultipleDisplays() const; |
63 | 63 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 private: | 122 private: |
123 std::unique_ptr<AshTestImpl> test_impl_; | 123 std::unique_ptr<AshTestImpl> test_impl_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(AshTest); | 125 DISALLOW_COPY_AND_ASSIGN(AshTest); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace ash | 128 } // namespace ash |
129 | 129 |
130 #endif // ASH_COMMON_TEST_ASH_TEST_H_ | 130 #endif // ASH_COMMON_TEST_ASH_TEST_H_ |
OLD | NEW |