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

Unified Diff: chrome/browser/sync/sessions/test_util.cc

Issue 6286067: sync: add a SyncSessionJobPurpose for clearing sync user data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome
Patch Set: whitespace 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
Index: chrome/browser/sync/sessions/test_util.cc
diff --git a/chrome/browser/sync/sessions/test_util.cc b/chrome/browser/sync/sessions/test_util.cc
index d6fdef57de09b566f6974a2b22f5c26cb20998a1..6f69de6d7abc37a7447d8200be9063c8c234b841 100644
--- a/chrome/browser/sync/sessions/test_util.cc
+++ b/chrome/browser/sync/sessions/test_util.cc
@@ -8,19 +8,22 @@ namespace browser_sync {
namespace sessions {
namespace test_util {
-void SimulateHasMoreToSync(sessions::SyncSession* session) {
+void SimulateHasMoreToSync(sessions::SyncSession* session,
+ SyncerStep begin, SyncerStep end) {
session->status_controller()->update_conflicts_resolved(true);
ASSERT_TRUE(session->HasMoreToSync());
}
-void SimulateDownloadUpdatesFailed(sessions::SyncSession* session) {
+void SimulateDownloadUpdatesFailed(sessions::SyncSession* session,
+ SyncerStep begin, SyncerStep end) {
// Note that a non-zero value of changes_remaining once a session has
// completed implies that the Syncer was unable to exhaust this count during
// the GetUpdates cycle. This is an indication that an error occurred.
session->status_controller()->set_num_server_changes_remaining(1);
}
-void SimulateCommitFailed(sessions::SyncSession* session) {
+void SimulateCommitFailed(sessions::SyncSession* session,
+ SyncerStep begin, SyncerStep end) {
// Note that a non-zero number of unsynced handles once a session has
// completed implies that the Syncer was unable to make forward progress
// during a commit, indicating an error occurred.
@@ -30,7 +33,8 @@ void SimulateCommitFailed(sessions::SyncSession* session) {
session->status_controller()->set_unsynced_handles(handles);
}
-void SimulateSuccess(sessions::SyncSession* session) {
+void SimulateSuccess(sessions::SyncSession* session,
+ SyncerStep begin, SyncerStep end) {
if (session->HasMoreToSync()) {
ADD_FAILURE() << "Shouldn't have more to sync";
}
« chrome/browser/sync/engine/syncer_thread2.cc ('K') | « chrome/browser/sync/sessions/test_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698