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

Unified Diff: chrome/browser/apps/app_browsertest.cc

Issue 129193002: Revert of chromeos: Don't send empty power management policies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | chrome/browser/chromeos/policy/power_policy_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/app_browsertest.cc
diff --git a/chrome/browser/apps/app_browsertest.cc b/chrome/browser/apps/app_browsertest.cc
index 60d863ed4cb1fd06c119858f6d007df748f94e79..ef6f3e849da338b1df61d639f7468d4768add33a 100644
--- a/chrome/browser/apps/app_browsertest.cc
+++ b/chrome/browser/apps/app_browsertest.cc
@@ -1260,8 +1260,8 @@
PlatformAppBrowserTest::TearDownInProcessBrowserTestFixture();
}
- int num_request_restart_calls() const {
- return power_manager_client_->num_request_restart_calls();
+ int request_restart_call_count() const {
+ return power_manager_client_->request_restart_call_count();
}
private:
@@ -1275,7 +1275,7 @@
// Tests that chrome.runtime.restart would request device restart in
// ChromeOS kiosk mode.
IN_PROC_BROWSER_TEST_F(RestartDeviceTest, Restart) {
- ASSERT_EQ(0, num_request_restart_calls());
+ ASSERT_EQ(0, request_restart_call_count());
ExtensionTestMessageListener launched_listener("Launched", true);
const Extension* extension = LoadAndLaunchPlatformApp("restart_device");
@@ -1287,7 +1287,7 @@
false);
ASSERT_TRUE(restart_requested_listener.WaitUntilSatisfied());
- EXPECT_EQ(1, num_request_restart_calls());
+ EXPECT_EQ(1, request_restart_call_count());
}
#endif // defined(OS_CHROMEOS)
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/power_policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698