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

Unified Diff: chrome/browser/notifications/platform_notification_service_browsertest.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
Index: chrome/browser/notifications/platform_notification_service_browsertest.cc
diff --git a/chrome/browser/notifications/platform_notification_service_browsertest.cc b/chrome/browser/notifications/platform_notification_service_browsertest.cc
index 724245be752f47cf27de264fd4dfc78b93a4f930..b90dec69f9830a3e9b01a21a9c1e65d13cf4ab10 100644
--- a/chrome/browser/notifications/platform_notification_service_browsertest.cc
+++ b/chrome/browser/notifications/platform_notification_service_browsertest.cc
@@ -287,8 +287,9 @@ IN_PROC_BROWSER_TEST_F(PlatformNotificationServiceBrowserTest,
const Notification& notification = ui_manager()->GetNotificationAt(0);
- EXPECT_EQ(base::UTF8ToUTF16(host_port.ToString()),
- notification.context_message());
+ EXPECT_TRUE(notification.context_message().empty());
+ EXPECT_EQ("https://" + host_port.ToString() + "/",
+ notification.origin_url().spec());
}
IN_PROC_BROWSER_TEST_F(PlatformNotificationServiceBrowserTest,

Powered by Google App Engine
This is Rietveld 408576698