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

Unified Diff: ui/message_center/notification_list_unittest.cc

Issue 2126433002: Use container::back() and container::pop_back() in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pre-increment Created 4 years, 5 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: ui/message_center/notification_list_unittest.cc
diff --git a/ui/message_center/notification_list_unittest.cc b/ui/message_center/notification_list_unittest.cc
index aad9154beeaf932ed65a84f92143942e1257df84..9daa10310629a1a939fcdbb68a49c95f1864b376 100644
--- a/ui/message_center/notification_list_unittest.cc
+++ b/ui/message_center/notification_list_unittest.cc
@@ -295,8 +295,8 @@ TEST_F(NotificationListTest, OldPopupShouldNotBeHidden) {
}
popups.clear();
popups = GetPopups();
- EXPECT_EQ(1u, popups.size());
- EXPECT_EQ(ids[ids.size() - 1], (*popups.begin())->id());
+ ASSERT_EQ(1u, popups.size());
+ EXPECT_EQ(ids.back(), (*popups.begin())->id());
}
TEST_F(NotificationListTest, Priority) {
« no previous file with comments | « ui/events/ozone/evdev/libgestures_glue/gesture_property_provider.cc ('k') | ui/message_center/popup_timers_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698