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

Unified Diff: sync/engine/cleanup_disabled_types_command_unittest.cc

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 6 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 | « sync/engine/cleanup_disabled_types_command.cc ('k') | sync/engine/conflict_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/cleanup_disabled_types_command_unittest.cc
diff --git a/sync/engine/cleanup_disabled_types_command_unittest.cc b/sync/engine/cleanup_disabled_types_command_unittest.cc
index 5b8f47684da75e667c937949d4e465fb5b6d5860..79a59fe0cd4c639f4ce27073938197acd5b2c78d 100644
--- a/sync/engine/cleanup_disabled_types_command_unittest.cc
+++ b/sync/engine/cleanup_disabled_types_command_unittest.cc
@@ -16,8 +16,6 @@ namespace syncer {
namespace {
-using syncable::HasModelTypes;
-using syncable::ModelTypeSet;
using testing::_;
class CleanupDisabledTypesCommandTest : public MockDirectorySyncerCommandTest {
@@ -26,7 +24,7 @@ class CleanupDisabledTypesCommandTest : public MockDirectorySyncerCommandTest {
virtual void SetUp() {
mutable_routing_info()->clear();
- (*mutable_routing_info())[syncable::BOOKMARKS] = GROUP_PASSIVE;
+ (*mutable_routing_info())[syncer::BOOKMARKS] = GROUP_PASSIVE;
MockDirectorySyncerCommandTest::SetUp();
}
};
@@ -35,7 +33,7 @@ class CleanupDisabledTypesCommandTest : public MockDirectorySyncerCommandTest {
TEST_F(CleanupDisabledTypesCommandTest, NoPreviousRoutingInfo) {
CleanupDisabledTypesCommand command;
ModelTypeSet expected = ModelTypeSet::All();
- expected.Remove(syncable::BOOKMARKS);
+ expected.Remove(syncer::BOOKMARKS);
EXPECT_CALL(*mock_directory(),
PurgeEntriesWithTypeIn(HasModelTypes(expected)));
command.ExecuteImpl(session());
@@ -47,7 +45,7 @@ TEST_F(CleanupDisabledTypesCommandTest, NoPurge) {
ModelSafeRoutingInfo prev(routing_info());
session()->context()->set_previous_session_routing_info(prev);
- (*mutable_routing_info())[syncable::AUTOFILL] = GROUP_PASSIVE;
+ (*mutable_routing_info())[syncer::AUTOFILL] = GROUP_PASSIVE;
command.ExecuteImpl(session());
prev = routing_info();
@@ -57,16 +55,16 @@ TEST_F(CleanupDisabledTypesCommandTest, NoPurge) {
TEST_F(CleanupDisabledTypesCommandTest, TypeDisabled) {
CleanupDisabledTypesCommand command;
- (*mutable_routing_info())[syncable::AUTOFILL] = GROUP_PASSIVE;
- (*mutable_routing_info())[syncable::THEMES] = GROUP_PASSIVE;
- (*mutable_routing_info())[syncable::EXTENSIONS] = GROUP_PASSIVE;
+ (*mutable_routing_info())[syncer::AUTOFILL] = GROUP_PASSIVE;
+ (*mutable_routing_info())[syncer::THEMES] = GROUP_PASSIVE;
+ (*mutable_routing_info())[syncer::EXTENSIONS] = GROUP_PASSIVE;
ModelSafeRoutingInfo prev(routing_info());
- prev[syncable::PASSWORDS] = GROUP_PASSIVE;
- prev[syncable::PREFERENCES] = GROUP_PASSIVE;
+ prev[syncer::PASSWORDS] = GROUP_PASSIVE;
+ prev[syncer::PREFERENCES] = GROUP_PASSIVE;
session()->context()->set_previous_session_routing_info(prev);
- const ModelTypeSet expected(syncable::PASSWORDS, syncable::PREFERENCES);
+ const ModelTypeSet expected(syncer::PASSWORDS, syncer::PREFERENCES);
EXPECT_CALL(*mock_directory(),
PurgeEntriesWithTypeIn(HasModelTypes(expected)));
command.ExecuteImpl(session());
« no previous file with comments | « sync/engine/cleanup_disabled_types_command.cc ('k') | sync/engine/conflict_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698