OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/fetch/Response.h" | 5 #include "modules/fetch/Response.h" |
6 | 6 |
7 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
8 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/dom/ExceptionCode.h" | |
11 #include "core/frame/Frame.h" | 10 #include "core/frame/Frame.h" |
12 #include "core/testing/DummyPageHolder.h" | 11 #include "core/testing/DummyPageHolder.h" |
13 #include "modules/fetch/BodyStreamBuffer.h" | 12 #include "modules/fetch/BodyStreamBuffer.h" |
14 #include "modules/fetch/DataConsumerHandleTestUtil.h" | 13 #include "modules/fetch/DataConsumerHandleTestUtil.h" |
15 #include "modules/fetch/DataConsumerHandleUtil.h" | 14 #include "modules/fetch/DataConsumerHandleUtil.h" |
16 #include "modules/fetch/FetchResponseData.h" | 15 #include "modules/fetch/FetchResponseData.h" |
17 #include "platform/blob/BlobData.h" | 16 #include "platform/blob/BlobData.h" |
18 #include "platform/testing/UnitTestHelpers.h" | 17 #include "platform/testing/UnitTestHelpers.h" |
19 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" | 18 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" |
20 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 EXPECT_CALL(*client1, didFetchDataLoadFailed()); | 252 EXPECT_CALL(*client1, didFetchDataLoadFailed()); |
254 EXPECT_CALL(*client2, didFetchDataLoadFailed()); | 253 EXPECT_CALL(*client2, didFetchDataLoadFailed()); |
255 | 254 |
256 response->internalBodyBuffer()->startLoading(response->getExecutionContext()
, FetchDataLoader::createLoaderAsString(), client1); | 255 response->internalBodyBuffer()->startLoading(response->getExecutionContext()
, FetchDataLoader::createLoaderAsString(), client1); |
257 clonedResponse->internalBodyBuffer()->startLoading(response->getExecutionCon
text(), FetchDataLoader::createLoaderAsString(), client2); | 256 clonedResponse->internalBodyBuffer()->startLoading(response->getExecutionCon
text(), FetchDataLoader::createLoaderAsString(), client2); |
258 blink::testing::runPendingTasks(); | 257 blink::testing::runPendingTasks(); |
259 } | 258 } |
260 | 259 |
261 } // namespace | 260 } // namespace |
262 } // namespace blink | 261 } // namespace blink |
OLD | NEW |