#include "third_party/blink/renderer/core/css/style_image_cache.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/element.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/settings.h"
#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include "third_party/blink/renderer/core/style/style_fetched_image.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/heap/thread_state.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
namespace blink {
namespace {
constexpr char kTestResourceFilename[] = …;
constexpr char kTestResourceMimeType[] = …;
}
class StyleImageCacheTest : public PageTestBase { … };
TEST_F(StyleImageCacheTest, DuplicateBackgroundImageURLs) { … }
TEST_F(StyleImageCacheTest, DifferingFragmentsBackgroundImageURLs) { … }
TEST_F(StyleImageCacheTest, CustomPropertyURL) { … }
TEST_F(StyleImageCacheTest, ComputedValueRelativePath) { … }
TEST_F(StyleImageCacheTest, WeakReferenceGC) { … }
class StyleImageCacheFrameClientTest : public EmptyLocalFrameClient { … };
class StyleImageCacheWithLoadingTest : public StyleImageCacheTest { … };
TEST_F(StyleImageCacheWithLoadingTest, DuplicateBackgroundImageURLs) { … }
TEST_F(StyleImageCacheWithLoadingTest, LoadFailedBackgroundImageURL) { … }
}