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

Unified Diff: chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc

Issue 20136004: Allow partial update for notification update API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add more tests per feedback Created 7 years, 5 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
Index: chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc
diff --git a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc b/chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc
index caedb246ab35caf4abaa5d16962ae64bad62d2da..2906a376a75776f65b5094e40d671687276592eb 100644
--- a/chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc
+++ b/chrome/browser/notifications/sync_notifier/chrome_notifier_service_unittest.cc
@@ -65,8 +65,8 @@ class StubNotificationUIManager : public NotificationUIManager {
// Returns true if any notifications match the supplied ID, either currently
// displayed or in the queue.
- virtual bool DoesIdExist(const std::string& id) OVERRIDE {
- return true;
+ virtual const Notification* FindById(const std::string& id) const OVERRIDE {
+ return (notification_.id() == id) ? &notification_ : NULL;
}
// Removes any notifications matching the supplied ID, either currently

Powered by Google App Engine
This is Rietveld 408576698