| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "config.h" | 6 #include "config.h" |
| 7 #include "modules/serviceworkers/ServiceWorkerContainer.h" | 7 #include "modules/serviceworkers/ServiceWorkerContainer.h" |
| 8 | 8 |
| 9 #include "bindings/core/v8/Dictionary.h" | 9 #include "bindings/core/v8/Dictionary.h" |
| 10 #include "bindings/core/v8/ScriptFunction.h" | 10 #include "bindings/core/v8/ScriptFunction.h" |
| 11 #include "bindings/core/v8/ScriptPromise.h" | 11 #include "bindings/core/v8/ScriptPromise.h" |
| 12 #include "bindings/core/v8/ScriptState.h" | 12 #include "bindings/core/v8/ScriptState.h" |
| 13 #include "bindings/core/v8/V8DOMException.h" | 13 #include "bindings/core/v8/V8DOMException.h" |
| 14 #include "bindings/core/v8/V8GCController.h" | 14 #include "bindings/core/v8/V8GCController.h" |
| 15 #include "core/dom/DOMException.h" | 15 #include "core/dom/DOMException.h" |
| 16 #include "core/dom/Document.h" | 16 #include "core/dom/Document.h" |
| 17 #include "core/dom/ExecutionContext.h" | 17 #include "core/dom/ExecutionContext.h" |
| 18 #include "core/page/FocusController.h" | 18 #include "core/page/FocusController.h" |
| 19 #include "core/testing/DummyPageHolder.h" | 19 #include "core/testing/DummyPageHolder.h" |
| 20 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" | 20 #include "modules/serviceworkers/ServiceWorkerContainerClient.h" |
| 21 #include "platform/weborigin/KURL.h" | 21 #include "platform/weborigin/KURL.h" |
| 22 #include "platform/weborigin/SecurityOrigin.h" | 22 #include "platform/weborigin/SecurityOrigin.h" |
| 23 #include "public/platform/WebServiceWorkerClientsInfo.h" | |
| 24 #include "public/platform/WebServiceWorkerProvider.h" | |
| 25 #include "public/platform/WebURL.h" | 23 #include "public/platform/WebURL.h" |
| 24 #include "public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h" |
| 25 #include "public/platform/modules/serviceworker/WebServiceWorkerProvider.h" |
| 26 #include "wtf/OwnPtr.h" | 26 #include "wtf/OwnPtr.h" |
| 27 #include "wtf/PassOwnPtr.h" | 27 #include "wtf/PassOwnPtr.h" |
| 28 #include "wtf/text/WTFString.h" | 28 #include "wtf/text/WTFString.h" |
| 29 #include <gtest/gtest.h> | 29 #include <gtest/gtest.h> |
| 30 #include <v8.h> | 30 #include <v8.h> |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 namespace { | 33 namespace { |
| 34 | 34 |
| 35 // Promise-related test support. | 35 // Promise-related test support. |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 container->getRegistration(scriptState(), ""); | 357 container->getRegistration(scriptState(), ""); |
| 358 EXPECT_EQ(1ul, stubProvider.getRegistrationCallCount()); | 358 EXPECT_EQ(1ul, stubProvider.getRegistrationCallCount()); |
| 359 EXPECT_EQ(WebURL(KURL(KURL(), "http://localhost/x/index.html")), stubPro
vider.getRegistrationURL()); | 359 EXPECT_EQ(WebURL(KURL(KURL(), "http://localhost/x/index.html")), stubPro
vider.getRegistrationURL()); |
| 360 } | 360 } |
| 361 | 361 |
| 362 container->willBeDetachedFromFrame(); | 362 container->willBeDetachedFromFrame(); |
| 363 } | 363 } |
| 364 | 364 |
| 365 } // namespace | 365 } // namespace |
| 366 } // namespace blink | 366 } // namespace blink |
| OLD | NEW |