| Index: chrome/test/sync/engine/syncer_command_test.h
|
| ===================================================================
|
| --- chrome/test/sync/engine/syncer_command_test.h (revision 71618)
|
| +++ chrome/test/sync/engine/syncer_command_test.h (working copy)
|
| @@ -6,6 +6,8 @@
|
| #define CHROME_TEST_SYNC_ENGINE_SYNCER_COMMAND_TEST_H_
|
| #pragma once
|
|
|
| +#include <algorithm>
|
| +#include <string>
|
| #include <vector>
|
|
|
| #include "chrome/browser/sync/engine/model_safe_worker.h"
|
| @@ -82,13 +84,21 @@
|
| sessions::SyncSessionContext* context() const { return context_.get(); }
|
| sessions::SyncSession::Delegate* delegate() { return this; }
|
| ModelSafeWorkerRegistrar* registrar() { return this; }
|
| - // Lazily create a session.
|
| + // Lazily create a session requesting all datatypes.
|
| sessions::SyncSession* session() {
|
| if (!session_.get()) {
|
| std::vector<ModelSafeWorker*> workers;
|
| GetWorkers(&workers);
|
| + sessions::SyncSourceInfo::ModelTypeMap types;
|
| + ModelSafeRoutingInfo routes = routing_info();
|
| + for (ModelSafeRoutingInfo::const_iterator i = routes.begin();
|
| + i != routes.end(); ++i) {
|
| + types[i->first] = std::string("");
|
| + }
|
| session_.reset(new sessions::SyncSession(context(), delegate(),
|
| - sessions::SyncSourceInfo(), routing_info_, workers));
|
| + sessions::SyncSourceInfo(sync_pb::GetUpdatesCallerInfo::UNKNOWN,
|
| + types),
|
| + routing_info_, workers));
|
| }
|
| return session_.get();
|
| }
|
|
|