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

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

Issue 2388163002: [Sync] Move //components/sync to the syncer namespace, take 2. (Closed)
Patch Set: Rebase. 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 5778cf8c8c5b840e2c8b24aaff5eb1ed1040dbcc..aa6c0615f80e887b4a6325d45724d5692329e7d1 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 sync_driver {
+namespace syncer {
// 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(sync_driver::prefs::kSyncManaged, NULL));
+ EXPECT_FALSE(prefs.GetValue(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(sync_driver::prefs::kSyncManaged, NULL));
+ EXPECT_FALSE(prefs.GetValue(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(sync_driver::prefs::kSyncManaged, &value));
+ EXPECT_TRUE(prefs.GetValue(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 sync_driver
+} // namespace syncer
« 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