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

Unified Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 238273008: Add an action for server to send down rollback command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | sync/engine/syncer_proto_util.cc » ('j') | sync/protocol/sync_enums.proto » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/sync_test.cc
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index 68bdae55b16cbf004b7d135c272082c6ee2c1c96..da83b0d51db730278b0004fff278974967dd4aec 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -915,8 +915,13 @@ sync_pb::SyncEnums::ErrorType
return sync_pb::SyncEnums::MIGRATION_DONE;
case syncer::UNKNOWN_ERROR:
return sync_pb::SyncEnums::UNKNOWN;
- default:
- NOTREACHED();
+ case syncer::INVALID_CREDENTIAL:
+ return sync_pb::SyncEnums::USER_NOT_ACTIVATED;
Nicolas Zea 2014/04/18 18:06:50 shouldn't this be auth_expired?
haitaol1 2014/04/18 20:01:31 This should be the reverse mapping of ConvertSyncP
+ case syncer::DISABLED_BY_ADMIN:
+ return sync_pb::SyncEnums::DISABLED_BY_ADMIN;
+ case syncer::USER_ROLLBACK:
+ return sync_pb::SyncEnums::USER_ROLLBACK;
+ case syncer::NON_RETRIABLE_ERROR:
return sync_pb::SyncEnums::UNKNOWN;
}
}
@@ -934,11 +939,11 @@ sync_pb::SyncEnums::Action GetClientToServerResponseAction(
return sync_pb::SyncEnums::STOP_AND_RESTART_SYNC;
case syncer::DISABLE_SYNC_ON_CLIENT:
return sync_pb::SyncEnums::DISABLE_SYNC_ON_CLIENT;
+ case syncer::STOP_SYNC_FOR_DISABLED_ACCOUNT:
+ return sync_pb::SyncEnums::DISABLED_BY_ADMIN;
+ case syncer::USER_ROLLBACK:
Nicolas Zea 2014/04/18 18:06:50 Shouldn't this case lead to DISABLE_SYNC_AND_ROLLB
haitaol1 2014/04/18 20:01:31 I didn't add corresponding action in sync proto be
case syncer::UNKNOWN_ACTION:
return sync_pb::SyncEnums::UNKNOWN_ACTION;
- default:
- NOTREACHED();
- return sync_pb::SyncEnums::UNKNOWN_ACTION;
}
}
« no previous file with comments | « no previous file | sync/engine/syncer_proto_util.cc » ('j') | sync/protocol/sync_enums.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698