Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(332)

Side by Side Diff: third_party/WebKit/Source/modules/fetch/ResponseTest.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory>
7 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/core/v8/V8BindingForTesting.h" 10 #include "bindings/core/v8/V8BindingForTesting.h"
10 #include "core/dom/Document.h" 11 #include "core/dom/Document.h"
11 #include "core/frame/Frame.h" 12 #include "core/frame/Frame.h"
12 #include "core/testing/DummyPageHolder.h" 13 #include "core/testing/DummyPageHolder.h"
13 #include "modules/fetch/BodyStreamBuffer.h" 14 #include "modules/fetch/BodyStreamBuffer.h"
14 #include "modules/fetch/BytesConsumer.h" 15 #include "modules/fetch/BytesConsumer.h"
15 #include "modules/fetch/BytesConsumerTestUtil.h" 16 #include "modules/fetch/BytesConsumerTestUtil.h"
16 #include "modules/fetch/DataConsumerHandleTestUtil.h" 17 #include "modules/fetch/DataConsumerHandleTestUtil.h"
17 #include "modules/fetch/FetchResponseData.h" 18 #include "modules/fetch/FetchResponseData.h"
18 #include "platform/blob/BlobData.h" 19 #include "platform/blob/BlobData.h"
19 #include "platform/testing/UnitTestHelpers.h" 20 #include "platform/testing/UnitTestHelpers.h"
21 #include "platform/wtf/PtrUtil.h"
22 #include "platform/wtf/Vector.h"
20 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" 23 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h"
21 #include "testing/gtest/include/gtest/gtest.h" 24 #include "testing/gtest/include/gtest/gtest.h"
22 #include "wtf/PtrUtil.h"
23 #include "wtf/Vector.h"
24 #include <memory>
25 25
26 namespace blink { 26 namespace blink {
27 namespace { 27 namespace {
28 28
29 std::unique_ptr<WebServiceWorkerResponse> CreateTestWebServiceWorkerResponse() { 29 std::unique_ptr<WebServiceWorkerResponse> CreateTestWebServiceWorkerResponse() {
30 const KURL url(kParsedURLString, "http://www.webresponse.com/"); 30 const KURL url(kParsedURLString, "http://www.webresponse.com/");
31 const unsigned short kStatus = 200; 31 const unsigned short kStatus = 200;
32 const String status_text = "the best status text"; 32 const String status_text = "the best status text";
33 struct { 33 struct {
34 const char* key; 34 const char* key;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 response->InternalBodyBuffer()->StartLoading( 311 response->InternalBodyBuffer()->StartLoading(
312 FetchDataLoader::CreateLoaderAsString(), client1); 312 FetchDataLoader::CreateLoaderAsString(), client1);
313 cloned_response->InternalBodyBuffer()->StartLoading( 313 cloned_response->InternalBodyBuffer()->StartLoading(
314 FetchDataLoader::CreateLoaderAsString(), client2); 314 FetchDataLoader::CreateLoaderAsString(), client2);
315 blink::testing::RunPendingTasks(); 315 blink::testing::RunPendingTasks();
316 } 316 }
317 317
318 } // namespace 318 } // namespace
319 } // namespace blink 319 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Response.cpp ('k') | third_party/WebKit/Source/modules/fetch/testing/InternalsFetch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698