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

Unified Diff: chrome/browser/chromeos/display/display_preferences_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: 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/display/display_preferences_unittest.cc
diff --git a/chrome/browser/chromeos/display/display_preferences_unittest.cc b/chrome/browser/chromeos/display/display_preferences_unittest.cc
index 7d889f04103dc7d0473d4df0b2126445d946f4b7..6f179cf24faacc33e3d8bf63ded8505847118813 100644
--- a/chrome/browser/chromeos/display/display_preferences_unittest.cc
+++ b/chrome/browser/chromeos/display/display_preferences_unittest.cc
@@ -438,8 +438,8 @@ TEST_F(DisplayPreferencesTest, PreventStore) {
message_center::MessageCenter::Get()->ClickOnNotificationButton(
ResolutionNotificationController::kNotificationId, 1);
RunAllPendingInMessageLoop();
- EXPECT_FALSE(message_center::MessageCenter::Get()->HasNotification(
- ResolutionNotificationController::kNotificationId));
+ EXPECT_TRUE(message_center::MessageCenter::Get()->FindVisibleNotificationById(
+ ResolutionNotificationController::kNotificationId) == NULL);
// Once the notification is removed, the specified resolution will be stored
// by SetDisplayResolution.

Powered by Google App Engine
This is Rietveld 408576698