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

Unified Diff: ash/system/chromeos/session/tray_session_length_limit_unittest.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/session/tray_session_length_limit_unittest.cc
diff --git a/ash/system/chromeos/session/tray_session_length_limit_unittest.cc b/ash/system/chromeos/session/tray_session_length_limit_unittest.cc
index da203a5455fd0093aa635249e405349a15834438..e69ecff19d92c5c273c31f55787c5a18e05d011b 100644
--- a/ash/system/chromeos/session/tray_session_length_limit_unittest.cc
+++ b/ash/system/chromeos/session/tray_session_length_limit_unittest.cc
@@ -46,7 +46,8 @@ class TraySessionLengthLimitTest : public AshTestBase {
const message_center::NotificationList::Notifications& notifications =
message_center::MessageCenter::Get()->GetVisibleNotifications();
for (message_center::NotificationList::Notifications::const_iterator iter =
- notifications.begin(); iter != notifications.end(); ++iter) {
+ notifications.begin();
+ iter != notifications.end(); ++iter) {
if ((*iter)->id() == TraySessionLengthLimit::kNotificationId)
return *iter;
}
@@ -85,8 +86,8 @@ TEST_F(TraySessionLengthLimitTest, Notification) {
EXPECT_EQ(message_center::SYSTEM_PRIORITY, notification->priority());
base::string16 first_content = notification->message();
// Should read the content.
- EXPECT_TRUE(notification->rich_notification_data().
- should_make_spoken_feedback_for_popup_updates);
+ EXPECT_TRUE(notification->rich_notification_data()
+ .should_make_spoken_feedback_for_popup_updates);
// Limit is 10 min.
UpdateSessionLengthLimitInMin(10);
@@ -96,8 +97,8 @@ TEST_F(TraySessionLengthLimitTest, Notification) {
// The content should be updated.
EXPECT_NE(first_content, notification->message());
// Should NOT read, because just update the remaining time.
- EXPECT_FALSE(notification->rich_notification_data().
- should_make_spoken_feedback_for_popup_updates);
+ EXPECT_FALSE(notification->rich_notification_data()
+ .should_make_spoken_feedback_for_popup_updates);
// Limit is 3 min.
UpdateSessionLengthLimitInMin(3);
@@ -105,8 +106,8 @@ TEST_F(TraySessionLengthLimitTest, Notification) {
EXPECT_TRUE(notification);
EXPECT_EQ(message_center::SYSTEM_PRIORITY, notification->priority());
// Should read the content again because the state has changed.
- EXPECT_TRUE(notification->rich_notification_data().
- should_make_spoken_feedback_for_popup_updates);
+ EXPECT_TRUE(notification->rich_notification_data()
+ .should_make_spoken_feedback_for_popup_updates);
// Session length limit is updated to longer: 15 min.
UpdateSessionLengthLimitInMin(15);
@@ -114,8 +115,8 @@ TEST_F(TraySessionLengthLimitTest, Notification) {
EXPECT_TRUE(notification);
EXPECT_EQ(message_center::SYSTEM_PRIORITY, notification->priority());
// Should read again because an increase of the remaining time is noteworthy.
- EXPECT_TRUE(notification->rich_notification_data().
- should_make_spoken_feedback_for_popup_updates);
+ EXPECT_TRUE(notification->rich_notification_data()
+ .should_make_spoken_feedback_for_popup_updates);
// Clears the limit: the notification should be gone.
ClearSessionLengthLimit();
@@ -140,8 +141,8 @@ TEST_F(TraySessionLengthLimitTest, RemoveNotification) {
UpdateSessionLengthLimitInMin(3);
message_center::Notification* notification = GetNotification();
EXPECT_TRUE(notification);
- EXPECT_TRUE(notification->rich_notification_data().
- should_make_spoken_feedback_for_popup_updates);
+ EXPECT_TRUE(notification->rich_notification_data()
+ .should_make_spoken_feedback_for_popup_updates);
RemoveNotification();
@@ -150,8 +151,8 @@ TEST_F(TraySessionLengthLimitTest, RemoveNotification) {
UpdateSessionLengthLimitInMin(15);
notification = GetNotification();
EXPECT_TRUE(notification);
- EXPECT_TRUE(notification->rich_notification_data().
- should_make_spoken_feedback_for_popup_updates);
+ EXPECT_TRUE(notification->rich_notification_data()
+ .should_make_spoken_feedback_for_popup_updates);
}
} // namespace test

Powered by Google App Engine
This is Rietveld 408576698