#include "third_party/blink/renderer/core/loader/threaded_icon_loader.h"
#include <optional>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/platform/web_url.h"
#include "third_party/blink/renderer/core/dom/document.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/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"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
namespace {
constexpr char kIconLoaderBaseUrl[] = …;
constexpr char kIconLoaderBaseDir[] = …;
constexpr char kIconLoaderIcon100x100[] = …;
constexpr char kIconLoaderInvalidIcon[] = …;
constexpr char kIconLoaderSVG100x100[] = …;
class ThreadedIconLoaderTest : public PageTestBase { … };
TEST_F(ThreadedIconLoaderTest, LoadIcon) { … }
TEST_F(ThreadedIconLoaderTest, LoadAndDownscaleIcon) { … }
TEST_F(ThreadedIconLoaderTest, LoadIconAndUpscaleIgnored) { … }
TEST_F(ThreadedIconLoaderTest, InvalidResourceReturnsNullIcon) { … }
TEST_F(ThreadedIconLoaderTest, ResizeFailed) { … }
TEST_F(ThreadedIconLoaderTest, LoadSVG) { … }
TEST_F(ThreadedIconLoaderTest, InvalidSVGReturnsNullIcon) { … }
}
}