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

Unified Diff: content/test/mock_platform_notification_service.h

Issue 2906883003: Deprecate per notification type delegates. (Closed)
Patch Set: review Created 3 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: content/test/mock_platform_notification_service.h
diff --git a/content/test/mock_platform_notification_service.h b/content/test/mock_platform_notification_service.h
index 64496cd960dbe59379abdf6f91df8ae3906b7b99..076d0169f0086009602480a2eb3ec7392483df28 100644
--- a/content/test/mock_platform_notification_service.h
+++ b/content/test/mock_platform_notification_service.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <string>
#include <unordered_map>
+#include <unordered_set>
#include "base/callback.h"
#include "base/macros.h"
@@ -22,7 +23,6 @@ namespace base {
namespace content {
-class DesktopNotificationDelegate;
struct NotificationResources;
struct PlatformNotificationData;
@@ -60,7 +60,6 @@ class MockPlatformNotificationService : public PlatformNotificationService {
const GURL& origin,
const PlatformNotificationData& notification_data,
const NotificationResources& notification_resources,
- std::unique_ptr<DesktopNotificationDelegate> delegate,
base::Closure* cancel_callback) override;
void DisplayPersistentNotification(
BrowserContext* browser_context,
@@ -96,8 +95,7 @@ class MockPlatformNotificationService : public PlatformNotificationService {
std::unordered_map<std::string, PersistentNotification>
persistent_notifications_;
- std::unordered_map<std::string, std::unique_ptr<DesktopNotificationDelegate>>
- non_persistent_notifications_;
+ std::unordered_set<std::string> non_persistent_notifications_;
// Mapping of titles to notification ids giving test a usable identifier.
std::unordered_map<std::string, std::string> notification_id_map_;
« no previous file with comments | « content/public/browser/platform_notification_service.h ('k') | content/test/mock_platform_notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698