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

Unified Diff: sync/sessions/test_util.cc

Issue 19982002: sync: Remove SyncSourceInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Convert SyncShareRecords to typedef Created 7 years, 5 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 | « sync/sessions/test_util.h ('k') | sync/sync_internal_api.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/test_util.cc
diff --git a/sync/sessions/test_util.cc b/sync/sessions/test_util.cc
index 3abfa97e6d1026b4d55de22edd84c17fddb6612a..538ed0f88c042490e7f4e8353189781f125cce07 100644
--- a/sync/sessions/test_util.cc
+++ b/sync/sessions/test_util.cc
@@ -8,31 +8,39 @@ namespace syncer {
namespace sessions {
namespace test_util {
-void SimulateGetEncryptionKeyFailed(ModelTypeSet requsted_types,
- sessions::SyncSession* session) {
+void SimulateGetEncryptionKeyFailed(
+ ModelTypeSet requsted_types,
+ sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source,
+ sessions::SyncSession* session) {
session->mutable_status_controller()->set_last_get_key_result(
SERVER_RESPONSE_VALIDATION_FAILED);
session->mutable_status_controller()->set_last_download_updates_result(
SYNCER_OK);
}
-void SimulateConfigureSuccess(ModelTypeSet requsted_types,
- sessions::SyncSession* session) {
+void SimulateConfigureSuccess(
+ ModelTypeSet requsted_types,
+ sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source,
+ sessions::SyncSession* session) {
ASSERT_EQ(0U, session->status_controller().num_server_changes_remaining());
session->mutable_status_controller()->set_last_get_key_result(SYNCER_OK);
session->mutable_status_controller()->set_last_download_updates_result(
SYNCER_OK);
}
-void SimulateConfigureFailed(ModelTypeSet requsted_types,
- sessions::SyncSession* session) {
+void SimulateConfigureFailed(
+ ModelTypeSet requsted_types,
+ sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source,
+ sessions::SyncSession* session) {
session->mutable_status_controller()->set_last_get_key_result(SYNCER_OK);
session->mutable_status_controller()->set_last_download_updates_result(
SERVER_RETURN_TRANSIENT_ERROR);
}
-void SimulateConfigureConnectionFailure(ModelTypeSet requsted_types,
- sessions::SyncSession* session) {
+void SimulateConfigureConnectionFailure(
+ ModelTypeSet requsted_types,
+ sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source,
+ sessions::SyncSession* session) {
session->mutable_status_controller()->set_last_get_key_result(SYNCER_OK);
session->mutable_status_controller()->set_last_download_updates_result(
NETWORK_CONNECTION_UNAVAILABLE);
« no previous file with comments | « sync/sessions/test_util.h ('k') | sync/sync_internal_api.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698