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

Unified Diff: chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc

Issue 324583002: The 1st patch to disambiguate message center notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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
Index: chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc
diff --git a/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc b/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc
index fd457afc7e1acf4f5d83b84ed7f66dfd7ae4f16f..1f43ccaba007f5d6cbcea842366791c629adf1c1 100644
--- a/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc
+++ b/chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc
@@ -172,13 +172,13 @@ IN_PROC_BROWSER_TEST_F(NetworkPortalDetectorImplBrowserTest,
ASSERT_EQ(PortalDetectorStrategy::STRATEGY_ID_SESSION, strategy()->Id());
// No notification until portal detection is completed.
- ASSERT_FALSE(message_center()->HasNotification(kNotificationId));
+ ASSERT_FALSE(message_center()->FindVisibleNotificationById(kNotificationId));
RestartDetection();
CompleteURLFetch(net::OK, 200, NULL);
// Check that wifi is marked as behind the portal and that notification
// is displayed.
- ASSERT_TRUE(message_center()->HasNotification(kNotificationId));
+ ASSERT_TRUE(message_center()->FindVisibleNotificationById(kNotificationId));
ASSERT_EQ(NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_PORTAL,
NetworkPortalDetector::Get()->GetCaptivePortalState(kWifi).status);

Powered by Google App Engine
This is Rietveld 408576698