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

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

Issue 731663002: Remove Yoshi charger recall pop up warning UI code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deprecat the related UMA metrics in histograms.xml. Created 6 years, 1 month 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/tray_power.cc ('k') | ash/system/tray/default_system_tray_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/tray_power_unittest.cc
diff --git a/ash/system/chromeos/power/tray_power_unittest.cc b/ash/system/chromeos/power/tray_power_unittest.cc
index 3678eec0807f560d04bd6c338b5fdec82aeb4836..50bb141d2f6ad26fb88f7a491acdde43a7776249 100644
--- a/ash/system/chromeos/power/tray_power_unittest.cc
+++ b/ash/system/chromeos/power/tray_power_unittest.cc
@@ -217,18 +217,6 @@ TEST_F(TrayPowerTest, UpdateNotificationState) {
safe_usb.set_battery_percent(TrayPower::kNoWarningPercentage - 0.1);
EXPECT_FALSE(UpdateNotificationState(safe_usb));
EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state());
-
- // A notification shouldn't be shown when we're in the full state with an
- // original Spring charger connected: http://crbug.com/338376
- PowerSupplyProperties spring = DefaultPowerSupplyProperties();
- spring.set_external_power(power_manager::
- PowerSupplyProperties_ExternalPower_ORIGINAL_SPRING_CHARGER);
- spring.set_battery_state(
- power_manager::PowerSupplyProperties_BatteryState_FULL);
- spring.set_battery_time_to_empty_sec(0);
- spring.set_battery_time_to_full_sec(0);
- EXPECT_FALSE(UpdateNotificationState(spring));
- EXPECT_EQ(TrayPower::NOTIFICATION_NONE, notification_state());
}
} // namespace ash
« no previous file with comments | « ash/system/chromeos/power/tray_power.cc ('k') | ash/system/tray/default_system_tray_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698