diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 21:44:44 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 21:44:44 +0000 |
commit | 5a1ad5c1ba4c5b9e86805e1c6fb7364492d6ac80 (patch) | |
tree | 471ff33ec7c19913601fc03dfaf63de606c21022 /chrome/browser/extensions/app_notification_test_util.h | |
parent | 0b5781a63246fb4abf31f871b445a6d85970b19f (diff) | |
download | chromium_src-5a1ad5c1ba4c5b9e86805e1c6fb7364492d6ac80.zip chromium_src-5a1ad5c1ba4c5b9e86805e1c6fb7364492d6ac80.tar.gz chromium_src-5a1ad5c1ba4c5b9e86805e1c6fb7364492d6ac80.tar.bz2 |
Revert 106110 - Implement SyncableService in AppNotificationsManager:
- Implement all methods of SyncableService
- Modify existing methods that change the model (Add and ClearAll) to push changes to sync.
- Add some extra properties to AppNotification: guid and extension id
- Disallow operations on model until storage is loaded.
- Ton of unit tests for sync methods
There is anotehr part for the full notifications sync to work that will be done in a separate CL.
Review URL: http://codereview.chromium.org/8263002
TBR=munjal@chromium.org
Review URL: http://codereview.chromium.org/8345022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106136 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/app_notification_test_util.h')
-rw-r--r-- | chrome/browser/extensions/app_notification_test_util.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/extensions/app_notification_test_util.h b/chrome/browser/extensions/app_notification_test_util.h index d17d0b6..0f38e5a 100644 --- a/chrome/browser/extensions/app_notification_test_util.h +++ b/chrome/browser/extensions/app_notification_test_util.h @@ -20,15 +20,16 @@ void ExpectListsEqual(const AppNotificationList& one, // Helper for inserting |count| dummy notifications with |prefix| in their // title and body into |list|. void AddNotifications(AppNotificationList* list, - const std::string& extension_id, int count, - const std::string& prefix); + std::string prefix); // Copy the contents of |source| into a new object. AppNotification* CopyAppNotification(const AppNotification& source); -// Adds a copy of each item in |list| to |manager|. -bool AddCopiesFromList(AppNotificationManager* manager, +// Adds a copy of each item in |list| to |manager| using |extension_id| as the +// extension id. +void AddCopiesFromList(AppNotificationManager* manager, + const std::string& extension_id, const AppNotificationList& list); } // namespace app_notification_test_util |