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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/RequestTest.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/Request.h" 5 #include "modules/fetch/Request.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 "public/platform/WebURLRequest.h" 12 #include "public/platform/WebURLRequest.h"
12 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" 13 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 #include "wtf/HashMap.h" 15 #include "wtf/HashMap.h"
15 #include "wtf/text/WTFString.h" 16 #include "wtf/text/WTFString.h"
16 #include <memory>
17 17
18 namespace blink { 18 namespace blink {
19 namespace { 19 namespace {
20 20
21 TEST(ServiceWorkerRequestTest, FromString) { 21 TEST(ServiceWorkerRequestTest, FromString) {
22 V8TestingScope scope; 22 V8TestingScope scope;
23 DummyExceptionStateForTesting exceptionState; 23 DummyExceptionStateForTesting exceptionState;
24 24
25 KURL url(ParsedURLString, "http://www.example.com/"); 25 KURL url(ParsedURLString, "http://www.example.com/");
26 Request* request = 26 Request* request =
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 Request::create(scope.getScriptState(), url, exceptionState); 113 Request::create(scope.getScriptState(), url, exceptionState);
114 ASSERT(request); 114 ASSERT(request);
115 115
116 WebServiceWorkerRequest webRequest; 116 WebServiceWorkerRequest webRequest;
117 request->populateWebServiceWorkerRequest(webRequest); 117 request->populateWebServiceWorkerRequest(webRequest);
118 EXPECT_EQ(urlWithoutFragment, KURL(webRequest.url())); 118 EXPECT_EQ(urlWithoutFragment, KURL(webRequest.url()));
119 } 119 }
120 120
121 } // namespace 121 } // namespace
122 } // namespace blink 122 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/RequestInit.h ('k') | third_party/WebKit/Source/modules/fetch/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698