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

Unified Diff: chrome/browser/notifications/platform_notification_service_unittest.cc

Issue 2813943002: Drop the const modifier on NotificationDisplayService::GetDisplayed (Closed)
Patch Set: sync and rebase Created 3 years, 8 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/notifications/platform_notification_service_unittest.cc
diff --git a/chrome/browser/notifications/platform_notification_service_unittest.cc b/chrome/browser/notifications/platform_notification_service_unittest.cc
index 4812b4013879d0c1f012dcc16b51247f3ba5ada3..840d32c9f7e2e0bdb1745317341a3f6e9c058bac 100644
--- a/chrome/browser/notifications/platform_notification_service_unittest.cc
+++ b/chrome/browser/notifications/platform_notification_service_unittest.cc
@@ -113,7 +113,7 @@ class PlatformNotificationServiceTest : public testing::Test {
void DidGetDisplayedNotifications(
std::unique_ptr<std::set<std::string>> displayed_notifications,
- bool supports_synchronization) const {
+ bool supports_synchronization) {
displayed_notifications_ = std::move(displayed_notifications);
}
@@ -152,7 +152,7 @@ class PlatformNotificationServiceTest : public testing::Test {
// Returns the Profile to be used for these tests.
Profile* profile() const { return profile_; }
- size_t GetNotificationCount() const {
+ size_t GetNotificationCount() {
display_service()->GetDisplayed(base::Bind(
&PlatformNotificationServiceTest::DidGetDisplayedNotifications,
base::Unretained(this)));
@@ -182,7 +182,7 @@ class PlatformNotificationServiceTest : public testing::Test {
std::unique_ptr<TestingProfileManager> profile_manager_;
TestingProfile* profile_;
content::TestBrowserThreadBundle thread_bundle_;
- mutable std::unique_ptr<std::set<std::string>> displayed_notifications_;
+ std::unique_ptr<std::set<std::string>> displayed_notifications_;
};
TEST_F(PlatformNotificationServiceTest, DisplayPageDisplayedEvent) {

Powered by Google App Engine
This is Rietveld 408576698