OLD | NEW |
---|---|
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 "chrome/browser/notifications/notification_test_util.h" | 5 #include "chrome/browser/notifications/notification_test_util.h" |
6 | 6 |
7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) | 7 MockNotificationDelegate::MockNotificationDelegate(const std::string& id) |
8 : id_(id) {} | 8 : id_(id) {} |
9 | 9 |
10 MockNotificationDelegate::~MockNotificationDelegate() {} | 10 MockNotificationDelegate::~MockNotificationDelegate() {} |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
128 bool StubNotificationUIManager::CancelAllByProfile(ProfileID profile_id) { | 128 bool StubNotificationUIManager::CancelAllByProfile(ProfileID profile_id) { |
129 NOTIMPLEMENTED(); | 129 NOTIMPLEMENTED(); |
130 return false; | 130 return false; |
131 } | 131 } |
132 | 132 |
133 void StubNotificationUIManager::CancelAll() { | 133 void StubNotificationUIManager::CancelAll() { |
134 for (const auto& pair : notifications_) | 134 for (const auto& pair : notifications_) |
135 pair.first.delegate()->Close(false /* by_user */); | 135 pair.first.delegate()->Close(false /* by_user */); |
136 notifications_.clear(); | 136 notifications_.clear(); |
137 } | 137 } |
138 | |
139 bool StubNotificationUIManager::AcceptNativeNotifications() { | |
140 return false; | |
141 ; | |
Peter Beverloo
2015/12/09 00:12:00
Don't empty statements cause compile errors?
Miguel Garcia
2015/12/10 20:16:30
Actually it didn't, thanks for spotting this one.
| |
142 } | |
OLD | NEW |