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

Unified Diff: chrome/browser/notifications/platform_notification_service_unittest.cc

Issue 1681123002: Plumb Notification action icons through to the UI layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ActionIconResourceFetching
Patch Set: Rebase. Appease FindBugs some more. Created 4 years, 10 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/platform_notification_service_unittest.cc
diff --git a/chrome/browser/notifications/platform_notification_service_unittest.cc b/chrome/browser/notifications/platform_notification_service_unittest.cc
index 7e53f527a09d650526855e43f0a3084a390b2c0e..ed51422fe363507c45796c9a5a6ab5c3c806e6da 100644
--- a/chrome/browser/notifications/platform_notification_service_unittest.cc
+++ b/chrome/browser/notifications/platform_notification_service_unittest.cc
@@ -231,9 +231,12 @@ TEST_F(PlatformNotificationServiceTest, DisplayPersistentNotificationMatches) {
notification_data.actions[0].title = base::ASCIIToUTF16("Button 1");
notification_data.actions[1].title = base::ASCIIToUTF16("Button 2");
+ NotificationResources notification_resources;
+ notification_resources.action_icons.resize(notification_data.actions.size());
+
service()->DisplayPersistentNotification(
profile(), 0u /* persistent notification */, GURL("https://chrome.com/"),
- notification_data, NotificationResources());
+ notification_data, notification_resources);
ASSERT_EQ(1u, ui_manager()->GetNotificationCount());

Powered by Google App Engine
This is Rietveld 408576698