diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/background_fetch/background_fetch_icon_loader_test.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/background_fetch/background_fetch_icon_loader_test.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/chromium/third_party/blink/renderer/modules/background_fetch/background_fetch_icon_loader_test.cc b/chromium/third_party/blink/renderer/modules/background_fetch/background_fetch_icon_loader_test.cc index c9a1a02a3c3..f9dbc8fae74 100644 --- a/chromium/third_party/blink/renderer/modules/background_fetch/background_fetch_icon_loader_test.cc +++ b/chromium/third_party/blink/renderer/modules/background_fetch/background_fetch_icon_loader_test.cc @@ -8,9 +8,9 @@ #include "third_party/blink/public/platform/web_size.h" #include "third_party/blink/public/platform/web_url.h" #include "third_party/blink/public/platform/web_url_loader_mock_factory.h" +#include "third_party/blink/renderer/bindings/modules/v8/v8_image_resource.h" #include "third_party/blink/renderer/core/execution_context/execution_context.h" #include "third_party/blink/renderer/core/testing/page_test_base.h" -#include "third_party/blink/renderer/modules/manifest/image_resource.h" #include "third_party/blink/renderer/platform/heap/persistent.h" #include "third_party/blink/renderer/platform/testing/testing_platform_support.h" #include "third_party/blink/renderer/platform/testing/unit_test_helpers.h" @@ -97,7 +97,7 @@ class BackgroundFetchIconLoaderTest : public PageTestBase { } void LoadIcon(const KURL& url, - const WebSize& maximum_size, + const gfx::Size& maximum_size, base::OnceClosure quit_closure, const String& sizes = "500x500", const String& purpose = "ANY") { @@ -115,7 +115,9 @@ class BackgroundFetchIconLoaderTest : public PageTestBase { maximum_size); } - ExecutionContext* GetContext() const { return &GetDocument(); } + ExecutionContext* GetContext() const { + return GetDocument().ToExecutionContext(); + } protected: ScopedTestingPlatformSupport<TestingPlatformSupport> platform_; @@ -129,7 +131,7 @@ class BackgroundFetchIconLoaderTest : public PageTestBase { TEST_F(BackgroundFetchIconLoaderTest, SuccessTest) { base::RunLoop run_loop; - WebSize maximum_size{192, 168}; + gfx::Size maximum_size{192, 168}; LoadIcon(KURL(kBackgroundFetchImageLoaderIcon500x500FullPath), maximum_size, run_loop.QuitClosure()); @@ -189,7 +191,7 @@ TEST_F(BackgroundFetchIconLoaderTest, PickRightIcon) { TEST_F(BackgroundFetchIconLoaderTest, EmptySizes) { base::RunLoop run_loop; - WebSize maximum_size{192, 168}; + gfx::Size maximum_size{192, 168}; LoadIcon(KURL(kBackgroundFetchImageLoaderIcon500x500FullPath), maximum_size, run_loop.QuitClosure(), "", "ANY"); @@ -204,7 +206,7 @@ TEST_F(BackgroundFetchIconLoaderTest, EmptySizes) { TEST_F(BackgroundFetchIconLoaderTest, EmptyPurpose) { base::RunLoop run_loop; - WebSize maximum_size{192, 168}; + gfx::Size maximum_size{192, 168}; LoadIcon(KURL(kBackgroundFetchImageLoaderIcon500x500FullPath), maximum_size, run_loop.QuitClosure(), "500X500", ""); |