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

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller_unittest.cc

Issue 2642853006: Remove the ash-enable-touch-view-testing flag (Closed)
Patch Set: Fix tests Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
diff --git a/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc b/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
index 18f000d3229f59ed5ea38d72c9b9cde4f77a5efa..3d931da90e3260ff566c331cca57d27494a7ac9d 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
+++ b/ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
@@ -541,29 +541,4 @@ TEST_F(MaximizeModeControllerTest, VerticalHingeUnstableAnglesTest) {
}
}
-class MaximizeModeControllerSwitchesTest : public MaximizeModeControllerTest {
- public:
- MaximizeModeControllerSwitchesTest() {}
- ~MaximizeModeControllerSwitchesTest() override {}
-
- void SetUp() override {
- base::CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kAshEnableTouchViewTesting);
- MaximizeModeControllerTest::SetUp();
- }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(MaximizeModeControllerSwitchesTest);
-};
-
-// Tests that when the command line switch for testing maximize mode is on, that
-// accelerometer updates which would normally cause it to exit do not.
-TEST_F(MaximizeModeControllerSwitchesTest, IgnoreHingeAngles) {
- maximize_mode_controller()->EnableMaximizeModeWindowManager(true);
-
- // Would normally trigger an exit from maximize mode.
- OpenLidToAngle(90.0f);
- EXPECT_TRUE(IsMaximizeModeStarted());
-}
-
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698