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 db9293b1f393a3f3cd74e68dc831a78fee0563dc..b0d7b2c6b5c8654ace3aa3dd2023ec33e4c7761f 100644 |
--- a/content/browser/service_worker/embedded_worker_test_helper.h |
+++ b/content/browser/service_worker/embedded_worker_test_helper.h |
@@ -35,6 +35,7 @@ class InterfaceRegistry; |
namespace content { |
+struct BackgroundFetchSettledFetch; |
class EmbeddedWorkerRegistry; |
class EmbeddedWorkerTestHelper; |
class MockRenderProcessHost; |
@@ -198,6 +199,16 @@ class EmbeddedWorkerTestHelper : public IPC::Sender, |
mojom::BackgroundFetchState state, |
const mojom::ServiceWorkerEventDispatcher:: |
DispatchBackgroundFetchClickEventCallback& callback); |
+ virtual void OnBackgroundFetchFailEvent( |
+ const std::string& tag, |
+ const std::vector<BackgroundFetchSettledFetch>& fetches, |
+ const mojom::ServiceWorkerEventDispatcher:: |
+ DispatchBackgroundFetchFailEventCallback& callback); |
+ virtual void OnBackgroundFetchedEvent( |
+ const std::string& tag, |
+ const std::vector<BackgroundFetchSettledFetch>& fetches, |
+ const mojom::ServiceWorkerEventDispatcher:: |
+ DispatchBackgroundFetchedEventCallback& callback); |
virtual void OnExtendableMessageEvent( |
mojom::ExtendableMessageEventPtr event, |
const mojom::ServiceWorkerEventDispatcher:: |
@@ -265,6 +276,16 @@ class EmbeddedWorkerTestHelper : public IPC::Sender, |
mojom::BackgroundFetchState state, |
const mojom::ServiceWorkerEventDispatcher:: |
DispatchBackgroundFetchClickEventCallback& callback); |
+ void OnBackgroundFetchFailEventStub( |
+ const std::string& tag, |
+ const std::vector<BackgroundFetchSettledFetch>& fetches, |
+ const mojom::ServiceWorkerEventDispatcher:: |
+ DispatchBackgroundFetchFailEventCallback& callback); |
+ void OnBackgroundFetchedEventStub( |
+ const std::string& tag, |
+ const std::vector<BackgroundFetchSettledFetch>& fetches, |
+ const mojom::ServiceWorkerEventDispatcher:: |
+ DispatchBackgroundFetchedEventCallback& callback); |
void OnExtendableMessageEventStub( |
mojom::ExtendableMessageEventPtr event, |
const mojom::ServiceWorkerEventDispatcher:: |