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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 } | 192 } |
193 | 193 |
194 aura::test::EventGenerator& AshTestBase::GetEventGenerator() { | 194 aura::test::EventGenerator& AshTestBase::GetEventGenerator() { |
195 if (!event_generator_) { | 195 if (!event_generator_) { |
196 event_generator_.reset( | 196 event_generator_.reset( |
197 new aura::test::EventGenerator(new AshEventGeneratorDelegate())); | 197 new aura::test::EventGenerator(new AshEventGeneratorDelegate())); |
198 } | 198 } |
199 return *event_generator_.get(); | 199 return *event_generator_.get(); |
200 } | 200 } |
201 | 201 |
| 202 ui::ContextFactory* AshTestBase::context_factory() { |
| 203 return ash_test_helper_->context_factory(); |
| 204 } |
| 205 |
202 bool AshTestBase::SupportsMultipleDisplays() { | 206 bool AshTestBase::SupportsMultipleDisplays() { |
203 return AshTestHelper::SupportsMultipleDisplays(); | 207 return AshTestHelper::SupportsMultipleDisplays(); |
204 } | 208 } |
205 | 209 |
206 bool AshTestBase::SupportsHostWindowResize() { | 210 bool AshTestBase::SupportsHostWindowResize() { |
207 return AshTestHelper::SupportsHostWindowResize(); | 211 return AshTestHelper::SupportsHostWindowResize(); |
208 } | 212 } |
209 | 213 |
210 void AshTestBase::UpdateDisplay(const std::string& display_specs) { | 214 void AshTestBase::UpdateDisplay(const std::string& display_specs) { |
211 DisplayManagerTestApi display_manager_test_api( | 215 DisplayManagerTestApi display_manager_test_api( |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 | 338 |
335 void AshTestBase::UnblockUserSession() { | 339 void AshTestBase::UnblockUserSession() { |
336 Shell::GetInstance()->session_state_delegate()->UnlockScreen(); | 340 Shell::GetInstance()->session_state_delegate()->UnlockScreen(); |
337 SetSessionStarted(true); | 341 SetSessionStarted(true); |
338 SetUserAddingScreenRunning(false); | 342 SetUserAddingScreenRunning(false); |
339 } | 343 } |
340 | 344 |
341 | 345 |
342 } // namespace test | 346 } // namespace test |
343 } // namespace ash | 347 } // namespace ash |
OLD | NEW |