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

Unified Diff: chrome/browser/policy/policy_statistics_collector_unittest.cc

Issue 27536003: Moved prefs::kUserPolicyRefreshRate to component/policy/policy_pref_names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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 | « chrome/browser/policy/policy_statistics_collector.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_statistics_collector_unittest.cc
diff --git a/chrome/browser/policy/policy_statistics_collector_unittest.cc b/chrome/browser/policy/policy_statistics_collector_unittest.cc
index 11fca7ade7649d32e2a0eefb925d99c5c44b32f8..e55d67a224a23751d7b761b174c4cb12513cf525 100644
--- a/chrome/browser/policy/policy_statistics_collector_unittest.cc
+++ b/chrome/browser/policy/policy_statistics_collector_unittest.cc
@@ -62,7 +62,8 @@ class PolicyStatisticsCollectorTest : public testing::Test {
}
virtual void SetUp() OVERRIDE {
- prefs_.registry()->RegisterInt64Pref(prefs::kLastPolicyStatisticsUpdate, 0);
+ prefs_.registry()->RegisterInt64Pref(
+ policy_prefs::kLastPolicyStatisticsUpdate, 0);
// Find ids for kTestPolicy1 and kTestPolicy2.
const policy::PolicyDefinitionList* policy_list =
@@ -123,7 +124,7 @@ class PolicyStatisticsCollectorTest : public testing::Test {
TEST_F(PolicyStatisticsCollectorTest, CollectPending) {
SetPolicy(kTestPolicy1);
- prefs_.SetInt64(prefs::kLastPolicyStatisticsUpdate,
+ prefs_.SetInt64(policy_prefs::kLastPolicyStatisticsUpdate,
(base::Time::Now() - update_delay_).ToInternalValue());
EXPECT_CALL(*policy_statistics_collector_.get(),
@@ -138,7 +139,7 @@ TEST_F(PolicyStatisticsCollectorTest, CollectPendingVeryOld) {
SetPolicy(kTestPolicy1);
// Must not be 0.0 (read comment for Time::FromDoubleT).
- prefs_.SetInt64(prefs::kLastPolicyStatisticsUpdate,
+ prefs_.SetInt64(policy_prefs::kLastPolicyStatisticsUpdate,
base::Time::FromDoubleT(1.0).ToInternalValue());
EXPECT_CALL(*policy_statistics_collector_.get(),
@@ -152,7 +153,7 @@ TEST_F(PolicyStatisticsCollectorTest, CollectPendingVeryOld) {
TEST_F(PolicyStatisticsCollectorTest, CollectLater) {
SetPolicy(kTestPolicy1);
- prefs_.SetInt64(prefs::kLastPolicyStatisticsUpdate,
+ prefs_.SetInt64(policy_prefs::kLastPolicyStatisticsUpdate,
(base::Time::Now() - update_delay_ / 2).ToInternalValue());
policy_statistics_collector_->Initialize();
@@ -164,7 +165,7 @@ TEST_F(PolicyStatisticsCollectorTest, MultiplePolicies) {
SetPolicy(kTestPolicy1);
SetPolicy(kTestPolicy2);
- prefs_.SetInt64(prefs::kLastPolicyStatisticsUpdate,
+ prefs_.SetInt64(policy_prefs::kLastPolicyStatisticsUpdate,
(base::Time::Now() - update_delay_).ToInternalValue());
EXPECT_CALL(*policy_statistics_collector_.get(),
« no previous file with comments | « chrome/browser/policy/policy_statistics_collector.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698