Commit fa245134 authored by Clovis PJ's avatar Clovis PJ Committed by Commit Bot

Implement background sync behaviour for FakeServiceWorker

Change-Id: I0f72337a6007260044e443ef2b4e4a90a0947b6e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2395737Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Clovis PJ <clovispj@google.com>
Cr-Commit-Position: refs/heads/master@{#806631}
parent 140aa0cb
...@@ -172,14 +172,14 @@ void FakeServiceWorker::DispatchSyncEvent(const std::string& tag, ...@@ -172,14 +172,14 @@ void FakeServiceWorker::DispatchSyncEvent(const std::string& tag,
bool last_chance, bool last_chance,
base::TimeDelta timeout, base::TimeDelta timeout,
DispatchSyncEventCallback callback) { DispatchSyncEventCallback callback) {
NOTIMPLEMENTED(); std::move(callback).Run(blink::mojom::ServiceWorkerEventStatus::COMPLETED);
} }
void FakeServiceWorker::DispatchPeriodicSyncEvent( void FakeServiceWorker::DispatchPeriodicSyncEvent(
const std::string& tag, const std::string& tag,
base::TimeDelta timeout, base::TimeDelta timeout,
DispatchPeriodicSyncEventCallback callback) { DispatchPeriodicSyncEventCallback callback) {
NOTIMPLEMENTED(); std::move(callback).Run(blink::mojom::ServiceWorkerEventStatus::COMPLETED);
} }
void FakeServiceWorker::DispatchAbortPaymentEvent( void FakeServiceWorker::DispatchAbortPaymentEvent(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment