Chromium Code Reviews| 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; |
| } |
| } |