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

Side by Side Diff: chrome/browser/notifications/sync_notifier/sync_notifier_test_utils.h

Issue 217203003: Update to latest protobufs to match the server side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated protobufs: Fix unit tests, add missing fields. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/notifications/sync_notifier/synced_notification.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 extern const char kButtonTwoIconUrl[]; 75 extern const char kButtonTwoIconUrl[];
76 extern const char kButtonTwoUrl[]; 76 extern const char kButtonTwoUrl[];
77 extern const char kContainedTitle1[]; 77 extern const char kContainedTitle1[];
78 extern const char kContainedTitle2[]; 78 extern const char kContainedTitle2[];
79 extern const char kContainedTitle3[]; 79 extern const char kContainedTitle3[];
80 extern const char kContainedMessage1[]; 80 extern const char kContainedMessage1[];
81 extern const char kContainedMessage2[]; 81 extern const char kContainedMessage2[];
82 extern const char kContainedMessage3[]; 82 extern const char kContainedMessage3[];
83 const uint64 kFakeCreationTime = 42; 83 const uint64 kFakeCreationTime = 42;
84 const int kProtobufPriority = static_cast<int>( 84 const int kProtobufPriority = static_cast<int>(
85 sync_pb::CoalescedSyncedNotification_Priority_LOW); 85 sync_pb::CoalescedSyncedNotification_Priority_INVISIBLE);
86 86
87 const sync_pb::CoalescedSyncedNotification_ReadState kRead = 87 const sync_pb::CoalescedSyncedNotification_ReadState kRead =
88 sync_pb::CoalescedSyncedNotification_ReadState_READ; 88 sync_pb::CoalescedSyncedNotification_ReadState_READ;
89 const sync_pb::CoalescedSyncedNotification_ReadState kDismissed = 89 const sync_pb::CoalescedSyncedNotification_ReadState kDismissed =
90 sync_pb::CoalescedSyncedNotification_ReadState_DISMISSED; 90 sync_pb::CoalescedSyncedNotification_ReadState_DISMISSED;
91 const sync_pb::CoalescedSyncedNotification_ReadState kUnread = 91 const sync_pb::CoalescedSyncedNotification_ReadState kUnread =
92 sync_pb::CoalescedSyncedNotification_ReadState_UNREAD; 92 sync_pb::CoalescedSyncedNotification_ReadState_UNREAD;
93 93
94 // This function builds the sync data object we use to create a testing 94 // This function builds the sync data object we use to create a testing
95 // notification. 95 // notification.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 SyncedNotificationAppInfo* FindSyncedNotificationAppInfoByName( 155 SyncedNotificationAppInfo* FindSyncedNotificationAppInfoByName(
156 const std::string& name); 156 const std::string& name);
157 std::vector<std::string> added_app_ids_; 157 std::vector<std::string> added_app_ids_;
158 std::vector<std::string> removed_app_ids_; 158 std::vector<std::string> removed_app_ids_;
159 bool on_bitmap_fetches_done_called_; 159 bool on_bitmap_fetches_done_called_;
160 }; 160 };
161 161
162 } // namespace notifier 162 } // namespace notifier
163 163
164 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H _ 164 #endif // CHROME_BROWSER_NOTIFICATIONS_SYNC_NOTIFIER_SYNC_NOTIFIER_TEST_UTILS_H _
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/sync_notifier/synced_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698