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

Unified Diff: ui/message_center/message_center_tray_unittest.cc

Issue 1292003004: Elide origins displayed on web notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style nit Created 5 years, 4 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/message_center_style.h ('k') | ui/message_center/notification.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center_tray_unittest.cc
diff --git a/ui/message_center/message_center_tray_unittest.cc b/ui/message_center/message_center_tray_unittest.cc
index b86c6f20bb6d4a4e982d6bc390b742a02e83fc16..1562156695a486d5afcfd08c034e400f24943640 100644
--- a/ui/message_center/message_center_tray_unittest.cc
+++ b/ui/message_center/message_center_tray_unittest.cc
@@ -69,16 +69,12 @@ class MessageCenterTrayTest : public testing::Test {
}
void AddNotification(const std::string& id) {
- scoped_ptr<Notification> notification(
- new Notification(message_center::NOTIFICATION_TYPE_SIMPLE,
- id,
- ASCIIToUTF16("Test Web Notification"),
- ASCIIToUTF16("Notification message body."),
- gfx::Image(),
- ASCIIToUTF16("www.test.org"),
- DummyNotifierId(),
- message_center::RichNotificationData(),
- NULL /* delegate */));
+ scoped_ptr<Notification> notification(new Notification(
+ message_center::NOTIFICATION_TYPE_SIMPLE, id,
+ ASCIIToUTF16("Test Web Notification"),
+ ASCIIToUTF16("Notification message body."), gfx::Image(),
+ ASCIIToUTF16("www.test.org"), GURL(), DummyNotifierId(),
+ message_center::RichNotificationData(), NULL /* delegate */));
message_center_->AddNotification(notification.Pass());
}
scoped_ptr<MockDelegate> delegate_;
@@ -174,16 +170,13 @@ TEST_F(MessageCenterTrayTest, MessageCenterReopenPopupsForSystemPriority) {
ASSERT_FALSE(message_center_tray_->popups_visible());
ASSERT_FALSE(message_center_tray_->message_center_visible());
- scoped_ptr<Notification> notification(
- new Notification(message_center::NOTIFICATION_TYPE_SIMPLE,
- "MessageCenterReopnPopupsForSystemPriority",
- ASCIIToUTF16("Test Web Notification"),
- ASCIIToUTF16("Notification message body."),
- gfx::Image(),
- ASCIIToUTF16("www.test.org"),
- DummyNotifierId(),
- message_center::RichNotificationData(),
- NULL /* delegate */));
+ scoped_ptr<Notification> notification(new Notification(
+ message_center::NOTIFICATION_TYPE_SIMPLE,
+ "MessageCenterReopnPopupsForSystemPriority",
+ ASCIIToUTF16("Test Web Notification"),
+ ASCIIToUTF16("Notification message body."), gfx::Image(),
+ ASCIIToUTF16("www.test.org"), GURL(), DummyNotifierId(),
+ message_center::RichNotificationData(), NULL /* delegate */));
notification->SetSystemPriority();
message_center_->AddNotification(notification.Pass());
@@ -249,16 +242,12 @@ TEST_F(MessageCenterTrayTest, ContextMenuTest) {
NotifierId notifier_id = DummyNotifierId();
NotifierId notifier_id2(NotifierId::APPLICATION, "sample-app");
- scoped_ptr<Notification> notification(
- new Notification(message_center::NOTIFICATION_TYPE_SIMPLE,
- id2,
- ASCIIToUTF16("Test Web Notification"),
- ASCIIToUTF16("Notification message body."),
- gfx::Image(),
- base::string16() /* empty display source */,
- notifier_id2,
- message_center::RichNotificationData(),
- NULL /* delegate */));
+ scoped_ptr<Notification> notification(new Notification(
+ message_center::NOTIFICATION_TYPE_SIMPLE, id2,
+ ASCIIToUTF16("Test Web Notification"),
+ ASCIIToUTF16("Notification message body."), gfx::Image(),
+ base::string16() /* empty display source */, GURL(), notifier_id2,
+ message_center::RichNotificationData(), NULL /* delegate */));
message_center_->AddNotification(notification.Pass());
AddNotification(id3);
« no previous file with comments | « ui/message_center/message_center_style.h ('k') | ui/message_center/notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698