Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: ash/test/ash_test_base.cc

Issue 2739703003: Last sets of tests that can move to common_unittests (Closed)
Patch Set: comments Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/mus/window_manager_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/test/test_session_state_delegate.h" 10 #include "ash/common/test/test_session_state_delegate.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 } 351 }
352 } 352 }
353 353
354 void AshTestBase::UnblockUserSession() { 354 void AshTestBase::UnblockUserSession() {
355 WmShell::Get()->GetSessionStateDelegate()->UnlockScreen(); 355 WmShell::Get()->GetSessionStateDelegate()->UnlockScreen();
356 SetSessionStarted(true); 356 SetSessionStarted(true);
357 SetUserAddingScreenRunning(false); 357 SetUserAddingScreenRunning(false);
358 } 358 }
359 359
360 void AshTestBase::DisableIME() { 360 void AshTestBase::DisableIME() {
361 // WindowTreeHostManager isn't applicable to mash and IME is routed
362 // differently in mash.
363 if (WmShell::Get()->IsRunningInMash())
364 return;
365
361 Shell::GetInstance()->RemovePreTargetHandler( 366 Shell::GetInstance()->RemovePreTargetHandler(
362 Shell::GetInstance() 367 Shell::GetInstance()
363 ->window_tree_host_manager() 368 ->window_tree_host_manager()
364 ->input_method_event_handler()); 369 ->input_method_event_handler());
365 } 370 }
366 371
367 display::DisplayManager* AshTestBase::display_manager() { 372 display::DisplayManager* AshTestBase::display_manager() {
368 return Shell::GetInstance()->display_manager(); 373 return Shell::GetInstance()->display_manager();
369 } 374 }
370 375
(...skipping 22 matching lines...) Expand all
393 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( 398 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId(
394 display_manager()->GetSecondaryDisplay().id()); 399 display_manager()->GetSecondaryDisplay().id());
395 } 400 }
396 401
397 display::Display AshTestBase::GetSecondaryDisplay() { 402 display::Display AshTestBase::GetSecondaryDisplay() {
398 return ash_test_helper_->GetSecondaryDisplay(); 403 return ash_test_helper_->GetSecondaryDisplay();
399 } 404 }
400 405
401 } // namespace test 406 } // namespace test
402 } // namespace ash 407 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/window_manager_unittest.cc ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698