| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/background_fetch/BackgroundFetchManager.h" | 5 #include "modules/background_fetch/BackgroundFetchManager.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/Dictionary.h" | 7 #include "bindings/core/v8/Dictionary.h" |
| 8 #include "bindings/core/v8/ExceptionState.h" | 8 #include "bindings/core/v8/ExceptionState.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/V8Binding.h" | 10 #include "bindings/core/v8/V8BindingForCore.h" |
| 11 #include "bindings/core/v8/V8BindingForTesting.h" | 11 #include "bindings/core/v8/V8BindingForTesting.h" |
| 12 #include "bindings/modules/v8/RequestOrUSVString.h" | 12 #include "bindings/modules/v8/RequestOrUSVString.h" |
| 13 #include "bindings/modules/v8/RequestOrUSVStringOrRequestOrUSVStringSequence.h" | 13 #include "bindings/modules/v8/RequestOrUSVStringOrRequestOrUSVStringSequence.h" |
| 14 #include "core/dom/ExceptionCode.h" | 14 #include "core/dom/ExceptionCode.h" |
| 15 #include "modules/fetch/Request.h" | 15 #include "modules/fetch/Request.h" |
| 16 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" | 16 #include "public/platform/modules/serviceworker/WebServiceWorkerRequest.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 | 20 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 RequestOrUSVStringOrRequestOrUSVStringSequence:: | 178 RequestOrUSVStringOrRequestOrUSVStringSequence:: |
| 179 fromRequestOrUSVStringSequence(request_sequence); | 179 fromRequestOrUSVStringSequence(request_sequence); |
| 180 | 180 |
| 181 Vector<WebServiceWorkerRequest> web_requests = | 181 Vector<WebServiceWorkerRequest> web_requests = |
| 182 CreateWebRequestVector(scope, requests); | 182 CreateWebRequestVector(scope, requests); |
| 183 ASSERT_TRUE(scope.GetExceptionState().HadException()); | 183 ASSERT_TRUE(scope.GetExceptionState().HadException()); |
| 184 EXPECT_EQ(scope.GetExceptionState().Code(), kV8TypeError); | 184 EXPECT_EQ(scope.GetExceptionState().Code(), kV8TypeError); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace blink | 187 } // namespace blink |
| OLD | NEW |