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

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

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 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 <memory>
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/V8BindingForTesting.h" 9 #include "bindings/core/v8/V8BindingForTesting.h"
11 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
11 #include "platform/bindings/ScriptState.h"
12 #include "platform/wtf/HashMap.h" 12 #include "platform/wtf/HashMap.h"
13 #include "platform/wtf/text/WTFString.h" 13 #include "platform/wtf/text/WTFString.h"
14 #include "public/platform/WebURLRequest.h" 14 #include "public/platform/WebURLRequest.h"
15 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" 15 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace blink { 18 namespace blink {
19 namespace { 19 namespace {
20 20
21 TEST(ServiceWorkerRequestTest, FromString) { 21 TEST(ServiceWorkerRequestTest, FromString) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 Request::Create(scope.GetScriptState(), url, exception_state); 125 Request::Create(scope.GetScriptState(), url, exception_state);
126 DCHECK(request); 126 DCHECK(request);
127 127
128 WebServiceWorkerRequest web_request; 128 WebServiceWorkerRequest web_request;
129 request->PopulateWebServiceWorkerRequest(web_request); 129 request->PopulateWebServiceWorkerRequest(web_request);
130 EXPECT_EQ(url_without_fragment, KURL(web_request.Url())); 130 EXPECT_EQ(url_without_fragment, KURL(web_request.Url()));
131 } 131 }
132 132
133 } // namespace 133 } // namespace
134 } // namespace blink 134 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Request.h ('k') | third_party/WebKit/Source/modules/fetch/Response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698