#include "third_party/blink/renderer/modules/notifications/notification_resources_loader.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/notifications/notification_constants.h"
#include "third_party/blink/public/mojom/notifications/notification.mojom-blink.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/garbage_collected.h"
#include "third_party/blink/renderer/platform/loader/fetch/memory_cache.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 kResourcesLoaderBaseUrl[] = …;
constexpr char kResourcesLoaderBaseDir[] = …;
constexpr char kResourcesLoaderIcon48x48[] = …;
constexpr char kResourcesLoaderIcon100x100[] = …;
constexpr char kResourcesLoaderIcon110x110[] = …;
constexpr char kResourcesLoaderIcon120x120[] = …;
constexpr char kResourcesLoaderIcon500x500[] = …;
constexpr char kResourcesLoaderIcon3000x1000[] = …;
constexpr char kResourcesLoaderIcon3000x2000[] = …;
class NotificationResourcesLoaderTest : public PageTestBase { … };
TEST_F(NotificationResourcesLoaderTest, LoadMultipleResources) { … }
TEST_F(NotificationResourcesLoaderTest, LargeIconsAreScaledDown) { … }
TEST_F(NotificationResourcesLoaderTest, DownscalingPreserves3_1AspectRatio) { … }
TEST_F(NotificationResourcesLoaderTest, DownscalingPreserves3_2AspectRatio) { … }
TEST_F(NotificationResourcesLoaderTest, EmptyDataYieldsEmptyResources) { … }
TEST_F(NotificationResourcesLoaderTest, EmptyResourcesIfAllImagesFailToLoad) { … }
TEST_F(NotificationResourcesLoaderTest, OneImageFailsToLoad) { … }
TEST_F(NotificationResourcesLoaderTest, StopYieldsNoResources) { … }
}
}