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

Unified Diff: chrome/browser/sync/test/engine/mock_connection_manager.h

Issue 8917031: [Sync] Add nigori node conflict resolution. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + pass trans/cryptographer directly through Created 9 years 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: chrome/browser/sync/test/engine/mock_connection_manager.h
diff --git a/chrome/browser/sync/test/engine/mock_connection_manager.h b/chrome/browser/sync/test/engine/mock_connection_manager.h
index d83dd7d736a3019ea728d5f8b9572305253ce176..9661c2d2ad4df92083f50d7ab0649b5f5fc69622 100644
--- a/chrome/browser/sync/test/engine/mock_connection_manager.h
+++ b/chrome/browser/sync/test/engine/mock_connection_manager.h
@@ -95,6 +95,12 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
std::string name,
int64 version,
int64 sync_ts);
+ // Versions of the AddUpdate function that accept specifics.
+ sync_pb::SyncEntity* AddUpdateSpecifics(int id, int parent_id,
+ std::string name,int64 version, int64 sync_ts, bool is_dir,
+ int64 position, const sync_pb::EntitySpecifics& specifics);
+ sync_pb::SyncEntity* SetNigori(int id, int64 version, int64 sync_ts,
+ const sync_pb::EntitySpecifics& specifics);
// Find the last commit sent by the client, and replay it for the next get
// updates command. This can be used to simulate the GetUpdates that happens
@@ -238,6 +244,10 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
std::string parentid, std::string name,
int64 version, int64 sync_ts,
bool is_dir);
+ sync_pb::SyncEntity* AddUpdateMeta(std::string id, std::string parentid,
+ std::string name, int64 version,
+ int64 sync_ts);
+
// Functions to handle the various types of server request.
void ProcessGetUpdates(sync_pb::ClientToServerMessage* csm,
sync_pb::ClientToServerResponse* response);
« no previous file with comments | « chrome/browser/sync/engine/syncer_util.cc ('k') | chrome/browser/sync/test/engine/mock_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698