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

Unified Diff: sync/engine/syncer_unittest.cc

Issue 10701046: sync: Remove SyncManager::TestingMode in favour of InternalComponentsFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now with more scope 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/syncer_unittest.cc
diff --git a/sync/engine/syncer_unittest.cc b/sync/engine/syncer_unittest.cc
index c4686230e6150e367bcbb1f20879f6aaa6535952..3f6dde7549f1cc6f45bc06eabff9135dc80dfed0 100644
--- a/sync/engine/syncer_unittest.cc
+++ b/sync/engine/syncer_unittest.cc
@@ -26,7 +26,7 @@
#include "sync/engine/get_commit_ids_command.h"
#include "sync/engine/net/server_connection_manager.h"
#include "sync/engine/process_updates_command.h"
-#include "sync/engine/sync_scheduler.h"
+#include "sync/engine/sync_scheduler_impl.h"
#include "sync/engine/syncer.h"
#include "sync/engine/syncer_proto_util.h"
#include "sync/engine/throttled_data_type_tracker.h"
@@ -185,10 +185,10 @@ class SyncerTest : public testing::Test,
}
bool SyncShareAsDelegate(
- SyncScheduler::SyncSessionJob::SyncSessionJobPurpose purpose) {
+ SyncSchedulerImpl::SyncSessionJob::SyncSessionJobPurpose purpose) {
SyncerStep start;
SyncerStep end;
- SyncScheduler::SetSyncerStepsForPurpose(purpose, &start, &end);
+ SyncSchedulerImpl::SetSyncerStepsForPurpose(purpose, &start, &end);
session_.reset(MakeSession());
syncer_->SyncShare(session_.get(), start, end);
@@ -197,12 +197,13 @@ class SyncerTest : public testing::Test,
bool SyncShareNudge() {
session_.reset(MakeSession());
- return SyncShareAsDelegate(SyncScheduler::SyncSessionJob::NUDGE);
+ return SyncShareAsDelegate(SyncSchedulerImpl::SyncSessionJob::NUDGE);
}
bool SyncShareConfigure() {
session_.reset(MakeSession());
- return SyncShareAsDelegate(SyncScheduler::SyncSessionJob::CONFIGURATION);
+ return SyncShareAsDelegate(
+ SyncSchedulerImpl::SyncSessionJob::CONFIGURATION);
}
void LoopSyncShare() {

Powered by Google App Engine
This is Rietveld 408576698