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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_controller_unittest.cc

Issue 2182443005: Moves TestVolumeControlDelegate to ash/common/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/test/test_volume_control_delegate.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/common/wm/maximize_mode/maximize_mode_controller.h" 5 #include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/common/ash_switches.h" 11 #include "ash/common/ash_switches.h"
12 #include "ash/common/system/tray/system_tray_delegate.h" 12 #include "ash/common/system/tray/system_tray_delegate.h"
13 #include "ash/common/test/test_volume_control_delegate.h"
13 #include "ash/common/wm/overview/window_selector_controller.h" 14 #include "ash/common/wm/overview/window_selector_controller.h"
14 #include "ash/common/wm_shell.h" 15 #include "ash/common/wm_shell.h"
15 #include "ash/display/display_manager.h" 16 #include "ash/display/display_manager.h"
16 #include "ash/shell.h" 17 #include "ash/shell.h"
17 #include "ash/test/ash_test_base.h" 18 #include "ash/test/ash_test_base.h"
18 #include "ash/test/display_manager_test_api.h" 19 #include "ash/test/display_manager_test_api.h"
19 #include "ash/test/test_system_tray_delegate.h" 20 #include "ash/test/test_system_tray_delegate.h"
20 #include "ash/test/test_volume_control_delegate.h"
21 #include "base/command_line.h" 21 #include "base/command_line.h"
22 #include "base/test/simple_test_tick_clock.h" 22 #include "base/test/simple_test_tick_clock.h"
23 #include "base/test/user_action_tester.h" 23 #include "base/test/user_action_tester.h"
24 #include "chromeos/accelerometer/accelerometer_reader.h" 24 #include "chromeos/accelerometer/accelerometer_reader.h"
25 #include "chromeos/accelerometer/accelerometer_types.h" 25 #include "chromeos/accelerometer/accelerometer_types.h"
26 #include "ui/events/event_handler.h" 26 #include "ui/events/event_handler.h"
27 #include "ui/events/test/event_generator.h" 27 #include "ui/events/test/event_generator.h"
28 #include "ui/gfx/geometry/vector3d_f.h" 28 #include "ui/gfx/geometry/vector3d_f.h"
29 #include "ui/message_center/message_center.h" 29 #include "ui/message_center/message_center.h"
30 30
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 // accelerometer updates which would normally cause it to exit do not. 559 // accelerometer updates which would normally cause it to exit do not.
560 TEST_F(MaximizeModeControllerSwitchesTest, IgnoreHingeAngles) { 560 TEST_F(MaximizeModeControllerSwitchesTest, IgnoreHingeAngles) {
561 maximize_mode_controller()->EnableMaximizeModeWindowManager(true); 561 maximize_mode_controller()->EnableMaximizeModeWindowManager(true);
562 562
563 // Would normally trigger an exit from maximize mode. 563 // Would normally trigger an exit from maximize mode.
564 OpenLidToAngle(90.0f); 564 OpenLidToAngle(90.0f);
565 EXPECT_TRUE(IsMaximizeModeStarted()); 565 EXPECT_TRUE(IsMaximizeModeStarted());
566 } 566 }
567 567
568 } // namespace ash 568 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/test_volume_control_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698