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

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: 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
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 // The functionality done here doesn't make sense in mash.
msw 2017/03/07 21:36:01 nit: elaborate on this comment, cite a bug?
sky 2017/03/07 21:43:30 There is no bug, but I expanded the comment.
362 if (WmShell::Get()->IsRunningInMash())
363 return;
364
361 Shell::GetInstance()->RemovePreTargetHandler( 365 Shell::GetInstance()->RemovePreTargetHandler(
362 Shell::GetInstance() 366 Shell::GetInstance()
363 ->window_tree_host_manager() 367 ->window_tree_host_manager()
364 ->input_method_event_handler()); 368 ->input_method_event_handler());
365 } 369 }
366 370
367 display::DisplayManager* AshTestBase::display_manager() { 371 display::DisplayManager* AshTestBase::display_manager() {
368 return Shell::GetInstance()->display_manager(); 372 return Shell::GetInstance()->display_manager();
369 } 373 }
370 374
(...skipping 22 matching lines...) Expand all
393 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId( 397 Shell::GetInstance()->window_tree_host_manager()->SetPrimaryDisplayId(
394 display_manager()->GetSecondaryDisplay().id()); 398 display_manager()->GetSecondaryDisplay().id());
395 } 399 }
396 400
397 display::Display AshTestBase::GetSecondaryDisplay() { 401 display::Display AshTestBase::GetSecondaryDisplay() {
398 return ash_test_helper_->GetSecondaryDisplay(); 402 return ash_test_helper_->GetSecondaryDisplay();
399 } 403 }
400 404
401 } // namespace test 405 } // namespace test
402 } // namespace ash 406 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698