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_BASE_H_ | 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_ |
6 #define ASH_TEST_ASH_TEST_BASE_H_ | 6 #define ASH_TEST_ASH_TEST_BASE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 // Returns the rotation currentl active for the display |id|. | 125 // Returns the rotation currentl active for the display |id|. |
126 static display::Display::Rotation GetActiveDisplayRotation(int64_t id); | 126 static display::Display::Rotation GetActiveDisplayRotation(int64_t id); |
127 | 127 |
128 // Returns the rotation currently active for the internal display. | 128 // Returns the rotation currently active for the internal display. |
129 static display::Display::Rotation GetCurrentInternalDisplayRotation(); | 129 static display::Display::Rotation GetCurrentInternalDisplayRotation(); |
130 | 130 |
131 // Proxy to AshTestHelper::SupportsMultipleDisplays(). | 131 // Proxy to AshTestHelper::SupportsMultipleDisplays(). |
132 static bool SupportsMultipleDisplays(); | 132 static bool SupportsMultipleDisplays(); |
133 | 133 |
134 // Proxy to AshTestHelper::SupportsHostWindowResize(). | |
135 static bool SupportsHostWindowResize(); | |
136 | |
137 void set_start_session(bool start_session) { start_session_ = start_session; } | 134 void set_start_session(bool start_session) { start_session_ = start_session; } |
138 | 135 |
139 // Sets material mode for the test. This will override material mode set via | 136 // Sets material mode for the test. This will override material mode set via |
140 // command line switches. | 137 // command line switches. |
141 void set_material_mode(MaterialDesignController::Mode material_mode) { | 138 void set_material_mode(MaterialDesignController::Mode material_mode) { |
142 CHECK(!setup_called_); | 139 CHECK(!setup_called_); |
143 material_mode_ = material_mode; | 140 material_mode_ = material_mode; |
144 } | 141 } |
145 | 142 |
146 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } | 143 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 ~NoSessionAshTestBase() override {} | 189 ~NoSessionAshTestBase() override {} |
193 | 190 |
194 private: | 191 private: |
195 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); | 192 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); |
196 }; | 193 }; |
197 | 194 |
198 } // namespace test | 195 } // namespace test |
199 } // namespace ash | 196 } // namespace ash |
200 | 197 |
201 #endif // ASH_TEST_ASH_TEST_BASE_H_ | 198 #endif // ASH_TEST_ASH_TEST_BASE_H_ |
OLD | NEW |