| OLD | NEW |
| 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/wm/maximize_mode/maximize_mode_controller.h" | 5 #include "ash/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/ash_switches.h" |
| 12 #include "ash/common/wm_shell.h" | |
| 13 #include "ash/shell.h" | 12 #include "ash/shell.h" |
| 14 #include "ash/system/tray/system_tray_delegate.h" | 13 #include "ash/system/tray/system_tray_delegate.h" |
| 15 #include "ash/test/ash_test_base.h" | 14 #include "ash/test/ash_test_base.h" |
| 16 #include "ash/test/test_system_tray_delegate.h" | 15 #include "ash/test/test_system_tray_delegate.h" |
| 17 #include "ash/wm/overview/window_selector_controller.h" | 16 #include "ash/wm/overview/window_selector_controller.h" |
| 17 #include "ash/wm_shell.h" |
| 18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
| 19 #include "base/test/simple_test_tick_clock.h" | 19 #include "base/test/simple_test_tick_clock.h" |
| 20 #include "base/test/user_action_tester.h" | 20 #include "base/test/user_action_tester.h" |
| 21 #include "chromeos/accelerometer/accelerometer_reader.h" | 21 #include "chromeos/accelerometer/accelerometer_reader.h" |
| 22 #include "chromeos/accelerometer/accelerometer_types.h" | 22 #include "chromeos/accelerometer/accelerometer_types.h" |
| 23 #include "ui/display/manager/display_manager.h" | 23 #include "ui/display/manager/display_manager.h" |
| 24 #include "ui/display/test/display_manager_test_api.h" | 24 #include "ui/display/test/display_manager_test_api.h" |
| 25 #include "ui/events/event_handler.h" | 25 #include "ui/events/event_handler.h" |
| 26 #include "ui/events/test/event_generator.h" | 26 #include "ui/events/test/event_generator.h" |
| 27 #include "ui/gfx/geometry/vector3d_f.h" | 27 #include "ui/gfx/geometry/vector3d_f.h" |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 kAccelerometerVerticalHingeUnstableAnglesTestData[i * 6 + 4], | 561 kAccelerometerVerticalHingeUnstableAnglesTestData[i * 6 + 4], |
| 562 kAccelerometerVerticalHingeUnstableAnglesTestData[i * 6 + 5]); | 562 kAccelerometerVerticalHingeUnstableAnglesTestData[i * 6 + 5]); |
| 563 TriggerBaseAndLidUpdate(base, lid); | 563 TriggerBaseAndLidUpdate(base, lid); |
| 564 // There are a lot of samples, so ASSERT rather than EXPECT to only generate | 564 // There are a lot of samples, so ASSERT rather than EXPECT to only generate |
| 565 // one failure rather than potentially hundreds. | 565 // one failure rather than potentially hundreds. |
| 566 ASSERT_TRUE(IsMaximizeModeStarted()); | 566 ASSERT_TRUE(IsMaximizeModeStarted()); |
| 567 } | 567 } |
| 568 } | 568 } |
| 569 | 569 |
| 570 } // namespace ash | 570 } // namespace ash |
| OLD | NEW |