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 "config.h" | |
6 #include "modules/fetch/Request.h" | 5 #include "modules/fetch/Request.h" |
7 | 6 |
8 #include "bindings/core/v8/ExceptionState.h" | 7 #include "bindings/core/v8/ExceptionState.h" |
9 #include "bindings/core/v8/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
10 #include "core/dom/Document.h" | 9 #include "core/dom/Document.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 "public/platform/WebURLRequest.h" | 12 #include "public/platform/WebURLRequest.h" |
14 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" | 13 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 Request* request = Request::create(scriptState(), url, exceptionState); | 117 Request* request = Request::create(scriptState(), url, exceptionState); |
119 ASSERT(request); | 118 ASSERT(request); |
120 | 119 |
121 WebServiceWorkerRequest webRequest; | 120 WebServiceWorkerRequest webRequest; |
122 request->populateWebServiceWorkerRequest(webRequest); | 121 request->populateWebServiceWorkerRequest(webRequest); |
123 EXPECT_EQ(urlWithoutFragment, KURL(webRequest.url())); | 122 EXPECT_EQ(urlWithoutFragment, KURL(webRequest.url())); |
124 } | 123 } |
125 | 124 |
126 } // namespace | 125 } // namespace |
127 } // namespace blink | 126 } // namespace blink |
OLD | NEW |