| Index: chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
|
| diff --git a/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc b/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
|
| index b6e8eccd6160cc7bdd0154b9b39a86ef779df5c5..b655ddb1a52ed3fe0cf2c74e5ea0fa398a4823a3 100644
|
| --- a/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
|
| +++ b/chrome/browser/chromeos/system/automatic_reboot_manager_unittest.cc
|
| @@ -400,7 +400,7 @@
|
| base::Value::CreateBooleanValue(reboot_after_update));
|
| task_runner_->RunUntilIdle();
|
| EXPECT_EQ(expect_reboot ? 1 : 0,
|
| - power_manager_client_->num_request_restart_calls());
|
| + power_manager_client_->request_restart_call_count());
|
| }
|
|
|
| void AutomaticRebootManagerBasicTest::SetUptimeLimit(
|
| @@ -416,7 +416,7 @@
|
| }
|
| task_runner_->RunUntilIdle();
|
| EXPECT_EQ(expect_reboot ? 1 : 0,
|
| - power_manager_client_->num_request_restart_calls());
|
| + power_manager_client_->request_restart_call_count());
|
| }
|
|
|
| void AutomaticRebootManagerBasicTest::NotifyUpdateRebootNeeded() {
|
| @@ -424,14 +424,14 @@
|
| automatic_reboot_manager_->UpdateStatusChanged(
|
| update_engine_client_->GetLastStatus());
|
| task_runner_->RunUntilIdle();
|
| - EXPECT_EQ(0, power_manager_client_->num_request_restart_calls());
|
| + EXPECT_EQ(0, power_manager_client_->request_restart_call_count());
|
| }
|
|
|
| void AutomaticRebootManagerBasicTest::NotifyResumed(bool expect_reboot) {
|
| automatic_reboot_manager_->SystemResumed(base::TimeDelta::FromHours(1));
|
| task_runner_->RunUntilIdle();
|
| EXPECT_EQ(expect_reboot ? 1 : 0,
|
| - power_manager_client_->num_request_restart_calls());
|
| + power_manager_client_->request_restart_call_count());
|
| }
|
|
|
| void AutomaticRebootManagerBasicTest::NotifyTerminating(bool expect_reboot) {
|
| @@ -441,7 +441,7 @@
|
| content::NotificationService::NoDetails());
|
| task_runner_->RunUntilIdle();
|
| EXPECT_EQ(expect_reboot ? 1 : 0,
|
| - power_manager_client_->num_request_restart_calls());
|
| + power_manager_client_->request_restart_call_count());
|
| }
|
|
|
| void AutomaticRebootManagerBasicTest::FastForwardBy(
|
| @@ -449,14 +449,14 @@
|
| bool expect_reboot) {
|
| task_runner_->FastForwardBy(delta);
|
| EXPECT_EQ(expect_reboot ? 1 : 0,
|
| - power_manager_client_->num_request_restart_calls());
|
| + power_manager_client_->request_restart_call_count());
|
| }
|
|
|
| void AutomaticRebootManagerBasicTest::FastForwardUntilNoTasksRemain(
|
| bool expect_reboot) {
|
| task_runner_->FastForwardUntilNoTasksRemain();
|
| EXPECT_EQ(expect_reboot ? 1 : 0,
|
| - power_manager_client_->num_request_restart_calls());
|
| + power_manager_client_->request_restart_call_count());
|
| }
|
|
|
| void AutomaticRebootManagerBasicTest::CreateAutomaticRebootManager(
|
| @@ -465,7 +465,7 @@
|
| scoped_ptr<base::TickClock>(new MockTimeTickClock(task_runner_))));
|
| task_runner_->RunUntilIdle();
|
| EXPECT_EQ(expect_reboot ? 1 : 0,
|
| - power_manager_client_->num_request_restart_calls());
|
| + power_manager_client_->request_restart_call_count());
|
|
|
| uptime_processing_delay_ =
|
| base::TimeTicks() - automatic_reboot_manager_->boot_time_ -
|
|
|