#include "third_party/blink/renderer/modules/background_fetch/background_fetch_icon_loader.h"
#include <utility>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/platform/web_url.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/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/testing/page_test_base.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"
#include "third_party/blink/renderer/platform/testing/url_loader_mock_factory.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
namespace blink {
namespace {
enum class BackgroundFetchLoadState { … };
constexpr char kBackgroundFetchImageLoaderBaseUrl[] = …;
constexpr char kBackgroundFetchImageLoaderBaseDir[] = …;
constexpr char kBackgroundFetchImageLoaderIcon500x500FullPath[] = …;
constexpr char kBackgroundFetchImageLoaderIcon500x500[] = …;
constexpr char kBackgroundFetchImageLoaderIcon48x48[] = …;
constexpr char kBackgroundFetchImageLoaderIcon3000x2000[] = …;
}
class BackgroundFetchIconLoaderTest : public PageTestBase { … };
TEST_F(BackgroundFetchIconLoaderTest, SuccessTest) { … }
TEST_F(BackgroundFetchIconLoaderTest, PickIconRelativePath) { … }
TEST_F(BackgroundFetchIconLoaderTest, PickIconFullPath) { … }
TEST_F(BackgroundFetchIconLoaderTest, PickRightIcon) { … }
TEST_F(BackgroundFetchIconLoaderTest, EmptySizes) { … }
TEST_F(BackgroundFetchIconLoaderTest, EmptyPurpose) { … }
}