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

Side by Side Diff: ash/system/chromeos/power/tablet_power_button_controller_unittest.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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/test/wm_test_base.cc ('k') | ash/wm/lock_state_controller_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/system/chromeos/power/tablet_power_button_controller.h" 5 #include "ash/system/chromeos/power/tablet_power_button_controller.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "ash/common/ash_switches.h" 9 #include "ash/common/ash_switches.h"
10 #include "ash/common/session/session_state_delegate.h" 10 #include "ash/common/session/session_state_delegate.h"
11 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h" 11 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
12 #include "ash/common/wm_shell.h" 12 #include "ash/common/wm_shell.h"
13 #include "ash/shell.h" 13 #include "ash/shell.h"
14 #include "ash/test/ash_test_base.h" 14 #include "ash/test/ash_test_base.h"
15 #include "ash/test/lock_state_controller_test_api.h" 15 #include "ash/test/lock_state_controller_test_api.h"
16 #include "ash/test/test_shell_delegate.h" 16 #include "ash/test/test_shell_delegate.h"
17 #include "ash/wm/lock_state_controller.h" 17 #include "ash/wm/lock_state_controller.h"
18 #include "ash/wm/power_button_controller.h" 18 #include "ash/wm/power_button_controller.h"
19 #include "base/command_line.h" 19 #include "base/command_line.h"
20 #include "base/compiler_specific.h" 20 #include "base/compiler_specific.h"
21 #include "base/memory/ptr_util.h"
21 #include "base/run_loop.h" 22 #include "base/run_loop.h"
22 #include "base/test/simple_test_tick_clock.h" 23 #include "base/test/simple_test_tick_clock.h"
23 #include "chromeos/dbus/dbus_thread_manager.h" 24 #include "chromeos/dbus/dbus_thread_manager.h"
24 #include "chromeos/dbus/fake_power_manager_client.h" 25 #include "chromeos/dbus/fake_power_manager_client.h"
25 #include "ui/events/event.h" 26 #include "ui/events/event.h"
26 #include "ui/events/test/event_generator.h" 27 #include "ui/events/test/event_generator.h"
27 28
28 namespace ash { 29 namespace ash {
29 namespace test { 30 namespace test {
30 31
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 tablet_controller_->OnMaximizeModeEnded(); 448 tablet_controller_->OnMaximizeModeEnded();
448 EXPECT_FALSE(lock_state_test_api_->shutdown_timer_is_running()); 449 EXPECT_FALSE(lock_state_test_api_->shutdown_timer_is_running());
449 tick_clock_->Advance(base::TimeDelta::FromMilliseconds(4500)); 450 tick_clock_->Advance(base::TimeDelta::FromMilliseconds(4500));
450 power_manager_client_->SendPowerButtonEvent(false, tick_clock_->NowTicks()); 451 power_manager_client_->SendPowerButtonEvent(false, tick_clock_->NowTicks());
451 EXPECT_FALSE(GetLockedState()); 452 EXPECT_FALSE(GetLockedState());
452 EXPECT_FALSE(GetBacklightsForcedOff()); 453 EXPECT_FALSE(GetBacklightsForcedOff());
453 } 454 }
454 455
455 } // namespace test 456 } // namespace test
456 } // namespace ash 457 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/test/wm_test_base.cc ('k') | ash/wm/lock_state_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698