| 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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 ProfileID profile_id) const override; | 56 ProfileID profile_id) const override; |
| 57 bool CancelById(const std::string& delegate_id, | 57 bool CancelById(const std::string& delegate_id, |
| 58 ProfileID profile_id) override; | 58 ProfileID profile_id) override; |
| 59 std::set<std::string> GetAllIdsByProfileAndSourceOrigin( | 59 std::set<std::string> GetAllIdsByProfileAndSourceOrigin( |
| 60 ProfileID profile_id, | 60 ProfileID profile_id, |
| 61 const GURL& source) override; | 61 const GURL& source) override; |
| 62 std::set<std::string> GetAllIdsByProfile(ProfileID profile_id) override; | 62 std::set<std::string> GetAllIdsByProfile(ProfileID profile_id) override; |
| 63 bool CancelAllBySourceOrigin(const GURL& source_origin) override; | 63 bool CancelAllBySourceOrigin(const GURL& source_origin) override; |
| 64 bool CancelAllByProfile(ProfileID profile_id) override; | 64 bool CancelAllByProfile(ProfileID profile_id) override; |
| 65 void CancelAll() override; | 65 void CancelAll() override; |
| 66 bool AcceptNativeNotifications() override; |
| 66 | 67 |
| 67 private: | 68 private: |
| 68 using NotificationPair = std::pair<Notification, ProfileID>; | 69 using NotificationPair = std::pair<Notification, ProfileID>; |
| 69 std::vector<NotificationPair> notifications_; | 70 std::vector<NotificationPair> notifications_; |
| 70 | 71 |
| 71 base::Closure notification_added_callback_; | 72 base::Closure notification_added_callback_; |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager); | 74 DISALLOW_COPY_AND_ASSIGN(StubNotificationUIManager); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ | 77 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_TEST_UTIL_H_ |
| OLD | NEW |