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

Unified Diff: ash/system/chromeos/power/tablet_power_button_controller_unittest.cc

Issue 2621373003: cleanup: Remove stylus check within OnMouseEvent for TabletPowerButtonController (Closed)
Patch Set: 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
« no previous file with comments | « ash/system/chromeos/power/tablet_power_button_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/tablet_power_button_controller_unittest.cc
diff --git a/ash/system/chromeos/power/tablet_power_button_controller_unittest.cc b/ash/system/chromeos/power/tablet_power_button_controller_unittest.cc
index 9f2fd5529c90b68583466a80bfbb7feb4fb8eedd..a115f49061a8daf283e94d241216e075878b1709 100644
--- a/ash/system/chromeos/power/tablet_power_button_controller_unittest.cc
+++ b/ash/system/chromeos/power/tablet_power_button_controller_unittest.cc
@@ -313,15 +313,6 @@ TEST_F(TabletPowerButtonControllerTest, ConvertibleOnLaptopMode) {
generator_->MoveMouseBy(1, 1);
generator_->set_flags(ui::EF_NONE);
EXPECT_TRUE(GetBacklightsForcedOff());
-
- // Stylus event should not SetBacklightsForcedOff(false).
- EXPECT_TRUE(GetBacklightsForcedOff());
- generator_->EnterPenPointerMode();
- generator_->PressTouch();
- generator_->MoveTouch(gfx::Point(1, 1));
- generator_->ReleaseTouch();
- EXPECT_TRUE(GetBacklightsForcedOff());
- generator_->ExitPenPointerMode();
}
// For convertible device working on tablet mode, keyboard/mouse event should
@@ -338,11 +329,6 @@ TEST_F(TabletPowerButtonControllerTest, ConvertibleOnMaximizeMode) {
generator_->MoveMouseBy(1, 1);
EXPECT_TRUE(GetBacklightsForcedOff());
-
- generator_->EnterPenPointerMode();
- generator_->MoveMouseBy(1, 1);
- EXPECT_TRUE(GetBacklightsForcedOff());
- generator_->ExitPenPointerMode();
}
// Tests that a single set of power button pressed-and-released operation should
« no previous file with comments | « ash/system/chromeos/power/tablet_power_button_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698