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 #include "ash/test/ash_test_base.h" | 5 #include "ash/test/ash_test_base.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 // static | 186 // static |
187 bool AshTestBase::SupportsMultipleDisplays() { | 187 bool AshTestBase::SupportsMultipleDisplays() { |
188 #if defined(OS_WIN) | 188 #if defined(OS_WIN) |
189 return base::win::GetVersion() < base::win::VERSION_WIN8; | 189 return base::win::GetVersion() < base::win::VERSION_WIN8; |
190 #else | 190 #else |
191 return true; | 191 return true; |
192 #endif | 192 #endif |
193 } | 193 } |
194 | 194 |
| 195 // static |
| 196 bool AshTestBase::SupportsHostWindowResize() { |
| 197 #if defined(OS_WIN) |
| 198 return base::win::GetVersion() < base::win::VERSION_WIN8; |
| 199 #else |
| 200 return true; |
| 201 #endif |
| 202 } |
| 203 |
195 void AshTestBase::UpdateDisplay(const std::string& display_specs) { | 204 void AshTestBase::UpdateDisplay(const std::string& display_specs) { |
196 DisplayManagerTestApi display_manager_test_api( | 205 DisplayManagerTestApi display_manager_test_api( |
197 Shell::GetInstance()->display_manager()); | 206 Shell::GetInstance()->display_manager()); |
198 display_manager_test_api.UpdateDisplay(display_specs); | 207 display_manager_test_api.UpdateDisplay(display_specs); |
199 } | 208 } |
200 | 209 |
201 aura::RootWindow* AshTestBase::CurrentContext() { | 210 aura::RootWindow* AshTestBase::CurrentContext() { |
202 return ash_test_helper_->CurrentContext(); | 211 return ash_test_helper_->CurrentContext(); |
203 } | 212 } |
204 | 213 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 SetHasActiveUser(user_logged_in); | 284 SetHasActiveUser(user_logged_in); |
276 } | 285 } |
277 | 286 |
278 void AshTestBase::SetCanLockScreen(bool can_lock_screen) { | 287 void AshTestBase::SetCanLockScreen(bool can_lock_screen) { |
279 ash_test_helper_->test_shell_delegate()->test_session_state_delegate()-> | 288 ash_test_helper_->test_shell_delegate()->test_session_state_delegate()-> |
280 SetCanLockScreen(can_lock_screen); | 289 SetCanLockScreen(can_lock_screen); |
281 } | 290 } |
282 | 291 |
283 } // namespace test | 292 } // namespace test |
284 } // namespace ash | 293 } // namespace ash |
OLD | NEW |