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

Side by Side Diff: ui/message_center/notification_list_unittest.cc

Issue 657923005: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/message_center/notification_list.h" 5 #include "ui/message_center/notification_list.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/i18n/time_formatting.h" 8 #include "base/i18n/time_formatting.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 #include "ui/message_center/message_center_style.h" 13 #include "ui/message_center/message_center_style.h"
14 #include "ui/message_center/notification_blocker.h" 14 #include "ui/message_center/notification_blocker.h"
15 #include "ui/message_center/notification_types.h" 15 #include "ui/message_center/notification_types.h"
16 #include "ui/message_center/notifier_settings.h" 16 #include "ui/message_center/notifier_settings.h"
17 17
18 using base::UTF8ToUTF16; 18 using base::UTF8ToUTF16;
19 19
20 namespace message_center { 20 namespace message_center {
21 21
22 class NotificationListTest : public testing::Test { 22 class NotificationListTest : public testing::Test {
23 public: 23 public:
24 NotificationListTest() {} 24 NotificationListTest() {}
25 virtual ~NotificationListTest() {} 25 ~NotificationListTest() override {}
26 26
27 virtual void SetUp() { 27 void SetUp() override {
28 notification_list_.reset(new NotificationList()); 28 notification_list_.reset(new NotificationList());
29 counter_ = 0; 29 counter_ = 0;
30 } 30 }
31 31
32 protected: 32 protected:
33 // Currently NotificationListTest doesn't care about some fields like title or 33 // Currently NotificationListTest doesn't care about some fields like title or
34 // message, so put a simple template on it. Returns the id of the new 34 // message, so put a simple template on it. Returns the id of the new
35 // notification. 35 // notification.
36 std::string AddNotification( 36 std::string AddNotification(
37 const message_center::RichNotificationData& optional_fields) { 37 const message_center::RichNotificationData& optional_fields) {
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 NULL)); 751 NULL));
752 notification_list()->AddNotification(updated_notification.Pass()); 752 notification_list()->AddNotification(updated_notification.Pass());
753 753
754 EXPECT_FALSE(notification_list()->HasNotificationOfType( 754 EXPECT_FALSE(notification_list()->HasNotificationOfType(
755 id, message_center::NOTIFICATION_TYPE_SIMPLE)); 755 id, message_center::NOTIFICATION_TYPE_SIMPLE));
756 EXPECT_TRUE(notification_list()->HasNotificationOfType( 756 EXPECT_TRUE(notification_list()->HasNotificationOfType(
757 id, message_center::NOTIFICATION_TYPE_PROGRESS)); 757 id, message_center::NOTIFICATION_TYPE_PROGRESS));
758 } 758 }
759 759
760 } // namespace message_center 760 } // namespace message_center
OLDNEW
« no previous file with comments | « ui/message_center/notification_delegate_unittest.cc ('k') | ui/message_center/views/bounded_label.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698