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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sync/notifier/notifications_disabled_reason.h" 5 #include "sync/notifier/notifications_disabled_reason.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace syncer { 9 namespace syncer {
10 10
(...skipping 20 matching lines...) Expand all
31 case notifier::TRANSIENT_NOTIFICATION_ERROR: 31 case notifier::TRANSIENT_NOTIFICATION_ERROR:
32 return TRANSIENT_NOTIFICATION_ERROR; 32 return TRANSIENT_NOTIFICATION_ERROR;
33 case notifier::NOTIFICATION_CREDENTIALS_REJECTED: 33 case notifier::NOTIFICATION_CREDENTIALS_REJECTED:
34 return NOTIFICATION_CREDENTIALS_REJECTED; 34 return NOTIFICATION_CREDENTIALS_REJECTED;
35 default: 35 default:
36 NOTREACHED(); 36 NOTREACHED();
37 return TRANSIENT_NOTIFICATION_ERROR; 37 return TRANSIENT_NOTIFICATION_ERROR;
38 } 38 }
39 } 39 }
40 40
41 notifier::NotificationsDisabledReason ToNotifierReasonForTest(
42 NotificationsDisabledReason reason) {
43 switch (reason) {
44 case NO_NOTIFICATION_ERROR:
45 return notifier::NO_NOTIFICATION_ERROR;
46 case TRANSIENT_NOTIFICATION_ERROR:
47 return notifier::TRANSIENT_NOTIFICATION_ERROR;
48 case NOTIFICATION_CREDENTIALS_REJECTED:
49 return notifier::NOTIFICATION_CREDENTIALS_REJECTED;
50 default:
51 NOTREACHED();
52 return notifier::TRANSIENT_NOTIFICATION_ERROR;
53 }
54 }
55
41 } // namespace syncer 56 } // namespace syncer
OLDNEW
« 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