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

Unified Diff: ui/message_center/views/message_popup_collection_unittest.cc

Issue 14631005: Enable users of NotificationUIManager to specify binary images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase for relanding. Created 7 years, 6 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
« no previous file with comments | « ui/message_center/views/message_center_view_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_popup_collection_unittest.cc
diff --git a/ui/message_center/views/message_popup_collection_unittest.cc b/ui/message_center/views/message_popup_collection_unittest.cc
index a032aaf0f656b1231500527d82e93d85b91d52ce..46fbacd9db03656cc59cb71f19bed89add1f9c03 100644
--- a/ui/message_center/views/message_popup_collection_unittest.cc
+++ b/ui/message_center/views/message_popup_collection_unittest.cc
@@ -68,14 +68,17 @@ class MessagePopupCollectionTest : public views::ViewsTestBase {
std::string AddNotification() {
std::string id = base::IntToString(id_++);
- MessageCenter::Get()->AddNotification(NOTIFICATION_TYPE_BASE_FORMAT,
- id,
- UTF8ToUTF16("test title"),
- UTF8ToUTF16("test message"),
- string16() /* display_source */,
- "" /* extension_id */,
- NULL /* optional_fields */,
- NULL /* delegate */);
+ scoped_ptr<Notification> notification(
+ new Notification(NOTIFICATION_TYPE_BASE_FORMAT,
+ id,
+ UTF8ToUTF16("test title"),
+ UTF8ToUTF16("test message"),
+ gfx::Image(),
+ string16() /* display_source */,
+ "" /* extension_id */,
+ NULL /* optional_fields */,
+ NULL /* delegate */));
+ MessageCenter::Get()->AddNotification(notification.Pass());
return id;
}
« no previous file with comments | « ui/message_center/views/message_center_view_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698