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

Unified Diff: sync/engine/sync_scheduler_whitebox_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: fix 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
Index: sync/engine/sync_scheduler_whitebox_unittest.cc
diff --git a/sync/engine/sync_scheduler_whitebox_unittest.cc b/sync/engine/sync_scheduler_whitebox_unittest.cc
index 760083fb0c7322d164570b3c0e5308dec9edd12a..31be7c10cfe792fefd00bfd940d554dd4847888a 100644
--- a/sync/engine/sync_scheduler_whitebox_unittest.cc
+++ b/sync/engine/sync_scheduler_whitebox_unittest.cc
@@ -19,7 +19,6 @@ using base::TimeDelta;
using base::TimeTicks;
namespace syncer {
-using syncer::Syncer;
using sessions::SyncSession;
using sessions::SyncSessionContext;
using sessions::SyncSourceInfo;
@@ -32,8 +31,8 @@ class SyncSchedulerWhiteboxTest : public testing::Test {
Syncer* syncer = new Syncer();
ModelSafeRoutingInfo routes;
- routes[syncer::BOOKMARKS] = GROUP_UI;
- routes[syncer::NIGORI] = GROUP_PASSIVE;
+ routes[BOOKMARKS] = GROUP_UI;
+ routes[NIGORI] = GROUP_PASSIVE;
workers_.push_back(make_scoped_refptr(new FakeModelWorker(GROUP_UI)));
workers_.push_back(make_scoped_refptr(new FakeModelWorker(GROUP_PASSIVE)));
@@ -143,15 +142,15 @@ TEST_F(SyncSchedulerWhiteboxTest, SaveNudge) {
TEST_F(SyncSchedulerWhiteboxTest, SaveNudgeWhileTypeThrottled) {
InitializeSyncerOnNormalMode();
- syncer::ModelTypeSet types;
- types.Put(syncer::BOOKMARKS);
+ ModelTypeSet types;
+ types.Put(BOOKMARKS);
// Mark bookmarks as throttled.
context()->throttled_data_type_tracker()->SetUnthrottleTime(
types, base::TimeTicks::Now() + base::TimeDelta::FromHours(2));
- syncer::ModelTypePayloadMap types_with_payload;
- types_with_payload[syncer::BOOKMARKS] = "";
+ ModelTypePayloadMap types_with_payload;
+ types_with_payload[BOOKMARKS] = "";
SyncSourceInfo info(GetUpdatesCallerInfo::LOCAL, types_with_payload);
SyncSession* s = scheduler_->CreateSyncSession(info);

Powered by Google App Engine
This is Rietveld 408576698