diff options
Diffstat (limited to 'chromeos/power/power_manager_handler_unittest.cc')
-rw-r--r-- | chromeos/power/power_manager_handler_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chromeos/power/power_manager_handler_unittest.cc b/chromeos/power/power_manager_handler_unittest.cc index e66c7cb..ec1cb36 100644 --- a/chromeos/power/power_manager_handler_unittest.cc +++ b/chromeos/power/power_manager_handler_unittest.cc @@ -88,7 +88,7 @@ TEST_F(PowerManagerHandlerTest, PowerManagerInitializeAndUpdate) { // requests, pretends there is a battery present, and generate some // valid power supply status data. message_loop_.RunUntilIdle(); - EXPECT_EQ(test_observer_->power_changed_count(), 0); + const int initial_changed_count = test_observer_->power_changed_count(); PowerSupplyStatus init_status = power_handler_->GetPowerSupplyStatus(); ValidatePowerSupplyStatus(init_status); @@ -96,7 +96,7 @@ TEST_F(PowerManagerHandlerTest, PowerManagerInitializeAndUpdate) { // status change. power_handler_->RequestStatusUpdate(); message_loop_.RunUntilIdle(); - EXPECT_GE(test_observer_->power_changed_count(), 1); + EXPECT_GT(test_observer_->power_changed_count(), initial_changed_count); } } // namespace chromeos |