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

Unified Diff: chrome/test/sync/engine/syncer_command_test.h

Issue 6182004: [SYNC] Refactor SyncSourceInfo and add support in chrome invalidation client ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Done! Created 9 years, 11 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 | « chrome/browser/sync/tools/sync_listen_notifications.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,18 @@
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);
+ ModelSafeRoutingInfo routes = routing_info();
+ sessions::TypePayloadMap types =
+ sessions::RoutingInfoToTypePayloadMap(routes, 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();
}
« no previous file with comments | « chrome/browser/sync/tools/sync_listen_notifications.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698