Chromium Code Reviews| Index: content/browser/service_worker/embedded_worker_test_helper.cc |
| diff --git a/content/browser/service_worker/embedded_worker_test_helper.cc b/content/browser/service_worker/embedded_worker_test_helper.cc |
| index a6a7cba1eb51819f5c04acbcc7181886bc8365d4..8119239ad83cc25c2e83c1ed5226fe0b5169b36a 100644 |
| --- a/content/browser/service_worker/embedded_worker_test_helper.cc |
| +++ b/content/browser/service_worker/embedded_worker_test_helper.cc |
| @@ -230,10 +230,11 @@ void EmbeddedWorkerTestHelper::OnInstallEvent(int embedded_worker_id, |
| void EmbeddedWorkerTestHelper::OnFetchEvent( |
| int embedded_worker_id, |
| - int request_id, |
| + int response_request_id, |
| + int finish_request_id, |
|
falken
2016/06/06 10:01:40
These names should match the ones in the header fi
shimazu
2016/06/09 05:44:21
Done.
|
| const ServiceWorkerFetchRequest& request) { |
| - SimulateSend(new ServiceWorkerHostMsg_FetchEventFinished( |
| - embedded_worker_id, request_id, |
| + SimulateSend(new ServiceWorkerHostMsg_FetchEventResponse( |
| + embedded_worker_id, response_request_id, |
| SERVICE_WORKER_FETCH_EVENT_RESULT_RESPONSE, |
| ServiceWorkerResponse( |
| GURL(), 200, "OK", blink::WebServiceWorkerResponseTypeDefault, |
| @@ -242,6 +243,9 @@ void EmbeddedWorkerTestHelper::OnFetchEvent( |
| false /* is_in_cache_storage */, |
| std::string() /* cache_storage_cache_name */, |
| ServiceWorkerHeaderList() /* cors_exposed_header_names */))); |
| + SimulateSend(new ServiceWorkerHostMsg_FetchEventFinished( |
| + embedded_worker_id, finish_request_id, |
| + blink::WebServiceWorkerEventResultCompleted)); |
| } |
| void EmbeddedWorkerTestHelper::OnPushEvent(int embedded_worker_id, |
| @@ -399,15 +403,14 @@ void EmbeddedWorkerTestHelper::OnInstallEventStub(int request_id) { |
| } |
| void EmbeddedWorkerTestHelper::OnFetchEventStub( |
| - int request_id, |
| + int response_request_id, |
| + int event_request_id, |
| const ServiceWorkerFetchRequest& request) { |
| base::ThreadTaskRunnerHandle::Get()->PostTask( |
| FROM_HERE, |
| base::Bind(&EmbeddedWorkerTestHelper::OnFetchEvent, |
| - weak_factory_.GetWeakPtr(), |
| - current_embedded_worker_id_, |
| - request_id, |
| - request)); |
| + weak_factory_.GetWeakPtr(), current_embedded_worker_id_, |
| + response_request_id, event_request_id, request)); |
| } |
| void EmbeddedWorkerTestHelper::OnPushEventStub( |