| 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 069ece088440ce9c2409e06f5a27c056c3cc498e..a5552fab5d24461ad5e263df0a3d3377b2aa7be6 100644
|
| --- a/ash/system/chromeos/power/tray_power_unittest.cc
|
| +++ b/ash/system/chromeos/power/tray_power_unittest.cc
|
| @@ -218,6 +218,18 @@ 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 internal
|
|
|