| 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;
|
| }
|
|
|
|
|