| Index: sync/test/engine/syncer_command_test.h
|
| diff --git a/sync/test/engine/syncer_command_test.h b/sync/test/engine/syncer_command_test.h
|
| index fa51d8221d2169fc9cfbaa31e6052e1e128d821d..eb9b5b76ffac8a1afb4730f723852a6d5edb02d9 100644
|
| --- a/sync/test/engine/syncer_command_test.h
|
| +++ b/sync/test/engine/syncer_command_test.h
|
| @@ -107,9 +107,19 @@ class SyncerCommandTestBase : public testing::Test,
|
|
|
| // Create a session with the provided source.
|
| sessions::SyncSession* session(const sessions::SyncSourceInfo& source) {
|
| - if (!session_) {
|
| + // These sources require a valid nudge tracker.
|
| + DCHECK_NE(sync_pb::GetUpdatesCallerInfo::LOCAL, source.updates_source);
|
| + DCHECK_NE(sync_pb::GetUpdatesCallerInfo::NOTIFICATION,
|
| + source.updates_source);
|
| + DCHECK_NE(sync_pb::GetUpdatesCallerInfo::DATATYPE_REFRESH,
|
| + source.updates_source);
|
| + if (!session_.get()) {
|
| std::vector<ModelSafeWorker*> workers = GetWorkers();
|
| - session_.reset(new sessions::SyncSession(context(), delegate(), source));
|
| + session_.reset(
|
| + sessions::SyncSession::BuildForNonNudge(
|
| + context(),
|
| + delegate(),
|
| + source));
|
| }
|
| return session_.get();
|
| }
|
|
|