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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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"
20 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h" 21 #include "public/platform/modules/serviceworker/WebServiceWorkerResponse.h"
21 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
22 #include "wtf/PtrUtil.h" 23 #include "wtf/PtrUtil.h"
23 #include "wtf/Vector.h" 24 #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(ParsedURLString, "http://www.webresponse.com/"); 30 const KURL url(ParsedURLString, "http://www.webresponse.com/");
31 const unsigned short status = 200; 31 const unsigned short status = 200;
32 const String statusText = "the best status text"; 32 const String statusText = "the best status text";
33 struct { 33 struct {
34 const char* key; 34 const char* key;
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 response->internalBodyBuffer()->startLoading( 308 response->internalBodyBuffer()->startLoading(
309 FetchDataLoader::createLoaderAsString(), client1); 309 FetchDataLoader::createLoaderAsString(), client1);
310 clonedResponse->internalBodyBuffer()->startLoading( 310 clonedResponse->internalBodyBuffer()->startLoading(
311 FetchDataLoader::createLoaderAsString(), client2); 311 FetchDataLoader::createLoaderAsString(), client2);
312 blink::testing::runPendingTasks(); 312 blink::testing::runPendingTasks();
313 } 313 }
314 314
315 } // namespace 315 } // namespace
316 } // namespace blink 316 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Response.cpp ('k') | third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698