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

Unified Diff: chrome/browser/sync/sync_policy_handler_unittest.cc

Issue 195873020: [Sync] Move SyncPrefs into sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rerererebase Created 6 years, 9 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/sync/sync_policy_handler.cc ('k') | chrome/browser/sync/sync_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_policy_handler_unittest.cc
diff --git a/chrome/browser/sync/sync_policy_handler_unittest.cc b/chrome/browser/sync/sync_policy_handler_unittest.cc
index accdf65d3a95dc70dd3c7152a8b133e506fd022a..0efee55beaafec6f8904ce913d4e9c1e4eab7f66 100644
--- a/chrome/browser/sync/sync_policy_handler_unittest.cc
+++ b/chrome/browser/sync/sync_policy_handler_unittest.cc
@@ -5,8 +5,8 @@
#include "base/prefs/pref_value_map.h"
#include "base/values.h"
#include "chrome/browser/sync/sync_policy_handler.h"
-#include "chrome/common/pref_names.h"
#include "components/policy/core/common/policy_map.h"
+#include "components/sync_driver/pref_names.h"
#include "policy/policy_constants.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -20,7 +20,7 @@ TEST_F(SyncPolicyHandlerTest, Default) {
SyncPolicyHandler handler;
PrefValueMap prefs;
handler.ApplyPolicySettings(policy, &prefs);
- EXPECT_FALSE(prefs.GetValue(prefs::kSyncManaged, NULL));
+ EXPECT_FALSE(prefs.GetValue(sync_driver::prefs::kSyncManaged, NULL));
}
TEST_F(SyncPolicyHandlerTest, Enabled) {
@@ -35,7 +35,7 @@ TEST_F(SyncPolicyHandlerTest, Enabled) {
handler.ApplyPolicySettings(policy, &prefs);
// Enabling Sync should not set the pref.
- EXPECT_FALSE(prefs.GetValue(prefs::kSyncManaged, NULL));
+ EXPECT_FALSE(prefs.GetValue(sync_driver::prefs::kSyncManaged, NULL));
}
TEST_F(SyncPolicyHandlerTest, Disabled) {
@@ -51,7 +51,7 @@ TEST_F(SyncPolicyHandlerTest, Disabled) {
// Sync should be flagged as managed.
const base::Value* value = NULL;
- EXPECT_TRUE(prefs.GetValue(prefs::kSyncManaged, &value));
+ EXPECT_TRUE(prefs.GetValue(sync_driver::prefs::kSyncManaged, &value));
ASSERT_TRUE(value);
bool sync_managed = false;
bool result = value->GetAsBoolean(&sync_managed);
« no previous file with comments | « chrome/browser/sync/sync_policy_handler.cc ('k') | chrome/browser/sync/sync_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698