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

Unified Diff: components/sync/driver/sync_policy_handler_unittest.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 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 | « components/sync/driver/sync_policy_handler.cc ('k') | components/sync/driver/sync_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/sync_policy_handler_unittest.cc
diff --git a/components/sync/driver/sync_policy_handler_unittest.cc b/components/sync/driver/sync_policy_handler_unittest.cc
index aa6c0615f80e887b4a6325d45724d5692329e7d1..5778cf8c8c5b840e2c8b24aaff5eb1ed1040dbcc 100644
--- a/components/sync/driver/sync_policy_handler_unittest.cc
+++ b/components/sync/driver/sync_policy_handler_unittest.cc
@@ -13,7 +13,7 @@
#include "components/sync/driver/pref_names.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace syncer {
+namespace sync_driver {
// Test cases for the Sync policy setting.
class SyncPolicyHandlerTest : public testing::Test {};
@@ -23,7 +23,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) {
@@ -36,7 +36,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) {
@@ -50,7 +50,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);
@@ -58,4 +58,4 @@ TEST_F(SyncPolicyHandlerTest, Disabled) {
EXPECT_TRUE(sync_managed);
}
-} // namespace syncer
+} // namespace sync_driver
« no previous file with comments | « components/sync/driver/sync_policy_handler.cc ('k') | components/sync/driver/sync_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698