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

Unified Diff: sync/engine/verify_updates_command_unittest.cc

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix indent Created 8 years, 5 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/verify_updates_command.cc ('k') | sync/internal_api/base_node.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/verify_updates_command_unittest.cc
diff --git a/sync/engine/verify_updates_command_unittest.cc b/sync/engine/verify_updates_command_unittest.cc
index 3375af81bf1bc458e61f15f6fe9c177af5c91f3e..c0ea3635e739064bb943f834a11899413117059e 100644
--- a/sync/engine/verify_updates_command_unittest.cc
+++ b/sync/engine/verify_updates_command_unittest.cc
@@ -29,15 +29,15 @@ class VerifyUpdatesCommandTest : public SyncerCommandTest {
mutable_routing_info()->clear();
workers()->push_back(make_scoped_refptr(new FakeModelWorker(GROUP_DB)));
workers()->push_back(make_scoped_refptr(new FakeModelWorker(GROUP_UI)));
- (*mutable_routing_info())[syncer::PREFERENCES] = GROUP_UI;
- (*mutable_routing_info())[syncer::BOOKMARKS] = GROUP_UI;
- (*mutable_routing_info())[syncer::AUTOFILL] = GROUP_DB;
+ (*mutable_routing_info())[PREFERENCES] = GROUP_UI;
+ (*mutable_routing_info())[BOOKMARKS] = GROUP_UI;
+ (*mutable_routing_info())[AUTOFILL] = GROUP_DB;
SyncerCommandTest::SetUp();
}
void CreateLocalItem(const std::string& item_id,
const std::string& parent_id,
- const syncer::ModelType& type) {
+ const ModelType& type) {
WriteTransaction trans(FROM_HERE, UNITTEST, directory());
MutableEntry entry(&trans, syncable::CREATE_NEW_UPDATE_ITEM,
Id::CreateFromServerId(item_id));
@@ -54,7 +54,7 @@ class VerifyUpdatesCommandTest : public SyncerCommandTest {
void AddUpdate(sync_pb::GetUpdatesResponse* updates,
const std::string& id, const std::string& parent,
- const syncer::ModelType& type) {
+ const ModelType& type) {
sync_pb::SyncEntity* e = updates->add_entries();
e->set_id_string("b1");
e->set_parent_id_string(parent);
@@ -70,20 +70,20 @@ class VerifyUpdatesCommandTest : public SyncerCommandTest {
TEST_F(VerifyUpdatesCommandTest, AllVerified) {
string root = syncable::GetNullId().GetServerId();
- CreateLocalItem("b1", root, syncer::BOOKMARKS);
- CreateLocalItem("b2", root, syncer::BOOKMARKS);
- CreateLocalItem("p1", root, syncer::PREFERENCES);
- CreateLocalItem("a1", root, syncer::AUTOFILL);
+ CreateLocalItem("b1", root, BOOKMARKS);
+ CreateLocalItem("b2", root, BOOKMARKS);
+ CreateLocalItem("p1", root, PREFERENCES);
+ CreateLocalItem("a1", root, AUTOFILL);
ExpectNoGroupsToChange(command_);
sync_pb::GetUpdatesResponse* updates =
session()->mutable_status_controller()->
mutable_updates_response()->mutable_get_updates();
- AddUpdate(updates, "b1", root, syncer::BOOKMARKS);
- AddUpdate(updates, "b2", root, syncer::BOOKMARKS);
- AddUpdate(updates, "p1", root, syncer::PREFERENCES);
- AddUpdate(updates, "a1", root, syncer::AUTOFILL);
+ AddUpdate(updates, "b1", root, BOOKMARKS);
+ AddUpdate(updates, "b2", root, BOOKMARKS);
+ AddUpdate(updates, "p1", root, PREFERENCES);
+ AddUpdate(updates, "a1", root, AUTOFILL);
ExpectGroupsToChange(command_, GROUP_UI, GROUP_DB);
« no previous file with comments | « sync/engine/verify_updates_command.cc ('k') | sync/internal_api/base_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698