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

Unified Diff: ash/system/chromeos/network/network_state_notifier_unittest.cc

Issue 324583002: The 1st patch to disambiguate message center notifications (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Justin's comments. 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: ash/system/chromeos/network/network_state_notifier_unittest.cc
diff --git a/ash/system/chromeos/network/network_state_notifier_unittest.cc b/ash/system/chromeos/network/network_state_notifier_unittest.cc
index 945bca3bc53d16b596138f2bcfe89bb93bf173bc..c7c2bc91bce700f10106efb4fc8e6996c133bd14 100644
--- a/ash/system/chromeos/network/network_state_notifier_unittest.cc
+++ b/ash/system/chromeos/network/network_state_notifier_unittest.cc
@@ -98,8 +98,8 @@ TEST_F(NetworkStateNotifierTest, ConnectionFailure) {
// Failure should spawn a notification.
message_center::MessageCenter* message_center =
message_center::MessageCenter::Get();
- EXPECT_TRUE(message_center->HasNotification(
- network_connect::kNetworkConnectNotificationId));
+ EXPECT_TRUE(message_center->FindVisibleNotificationById(
+ network_connect::kNetworkConnectNotificationId) != NULL);
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698