Index: content/browser/service_worker/embedded_worker_test_helper.h |
diff --git a/content/browser/service_worker/embedded_worker_test_helper.h b/content/browser/service_worker/embedded_worker_test_helper.h |
index fe94ff1a2eea7240bde5b9d42c6df01cff386cd2..094032b43407845bae7fa818ea4ebb29e612ca3e 100644 |
--- a/content/browser/service_worker/embedded_worker_test_helper.h |
+++ b/content/browser/service_worker/embedded_worker_test_helper.h |
@@ -43,6 +43,7 @@ class ServiceWorkerContextCore; |
class ServiceWorkerContextWrapper; |
class TestBrowserContext; |
struct EmbeddedWorkerStartParams; |
+struct PlatformNotificationData; |
struct PushEventPayload; |
struct ServiceWorkerFetchRequest; |
@@ -193,6 +194,18 @@ class EmbeddedWorkerTestHelper : public IPC::Sender, |
const ServiceWorkerFetchRequest& request, |
mojom::FetchEventPreloadHandlePtr preload_handle, |
const FetchCallback& callback); |
+ virtual void OnNotificationClickEvent( |
+ const std::string& notification_id, |
+ const PlatformNotificationData& notification_data, |
+ int action_index, |
+ const base::Optional<base::string16>& reply, |
+ const mojom::ServiceWorkerEventDispatcher:: |
+ DispatchNotificationClickEventCallback& callback); |
+ virtual void OnNotificationCloseEvent( |
+ const std::string& notification_id, |
+ const PlatformNotificationData& notification_data, |
+ const mojom::ServiceWorkerEventDispatcher:: |
+ DispatchNotificationCloseEventCallback& callback); |
virtual void OnPushEvent( |
const PushEventPayload& payload, |
const mojom::ServiceWorkerEventDispatcher::DispatchPushEventCallback& |
@@ -237,6 +250,18 @@ class EmbeddedWorkerTestHelper : public IPC::Sender, |
const ServiceWorkerFetchRequest& request, |
mojom::FetchEventPreloadHandlePtr preload_handle, |
const FetchCallback& callback); |
+ void OnNotificationClickEventStub( |
+ const std::string& notification_id, |
+ const PlatformNotificationData& notification_data, |
+ int action_index, |
+ const base::Optional<base::string16>& reply, |
+ const mojom::ServiceWorkerEventDispatcher:: |
+ DispatchNotificationClickEventCallback& callback); |
+ void OnNotificationCloseEventStub( |
+ const std::string& notification_id, |
+ const PlatformNotificationData& notification_data, |
+ const mojom::ServiceWorkerEventDispatcher:: |
+ DispatchNotificationCloseEventCallback& callback); |
void OnPushEventStub( |
const PushEventPayload& payload, |
const mojom::ServiceWorkerEventDispatcher::DispatchPushEventCallback& |