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

Unified Diff: sync/notifier/notifications_disabled_reason.cc

Issue 10874096: [Sync] Rework Invalidator-related unit tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 4 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/notifier/notifications_disabled_reason.h ('k') | sync/notifier/object_id_state_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/notifications_disabled_reason.cc
diff --git a/sync/notifier/notifications_disabled_reason.cc b/sync/notifier/notifications_disabled_reason.cc
index 89c0a03c723a106931a23e7f5f5638f36f8c8a36..8c1a1aaadb63fab945cbe47727da9325d5708317 100644
--- a/sync/notifier/notifications_disabled_reason.cc
+++ b/sync/notifier/notifications_disabled_reason.cc
@@ -38,4 +38,19 @@ NotificationsDisabledReason FromNotifierReason(
}
}
+notifier::NotificationsDisabledReason ToNotifierReasonForTest(
+ NotificationsDisabledReason reason) {
+ switch (reason) {
+ case NO_NOTIFICATION_ERROR:
+ return notifier::NO_NOTIFICATION_ERROR;
+ case TRANSIENT_NOTIFICATION_ERROR:
+ return notifier::TRANSIENT_NOTIFICATION_ERROR;
+ case NOTIFICATION_CREDENTIALS_REJECTED:
+ return notifier::NOTIFICATION_CREDENTIALS_REJECTED;
+ default:
+ NOTREACHED();
+ return notifier::TRANSIENT_NOTIFICATION_ERROR;
+ }
+}
+
} // namespace syncer
« no previous file with comments | « sync/notifier/notifications_disabled_reason.h ('k') | sync/notifier/object_id_state_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698