#include "third_party/blink/renderer/modules/csspaint/nativepaint/background_color_paint_definition.h"
#include "base/memory/scoped_refptr.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/public/platform/scheduler/test/renderer_scheduler_test_support.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_optional_effect_timing.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_cssnumericvalue_double.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_union_cssnumericvalue_string_unrestricteddouble.h"
#include "third_party/blink/renderer/core/animation/document_timeline.h"
#include "third_party/blink/renderer/core/animation/element_animations.h"
#include "third_party/blink/renderer/core/animation/inert_effect.h"
#include "third_party/blink/renderer/core/animation/keyframe_effect.h"
#include "third_party/blink/renderer/core/animation/keyframe_effect_model.h"
#include "third_party/blink/renderer/core/animation/string_keyframe.h"
#include "third_party/blink/renderer/core/animation/timing.h"
#include "third_party/blink/renderer/core/css/background_color_paint_image_generator.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.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/execution_context/security_context.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/core_unit_test_helper.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/graphics/bitmap_image.h"
#include "third_party/blink/renderer/platform/graphics/color.h"
#include "third_party/blink/renderer/platform/graphics/platform_paint_worklet_layer_painter.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/testing/runtime_enabled_features_test_helpers.h"
namespace blink {
class FakeBackgroundColorPaintImageGenerator
: public BackgroundColorPaintImageGenerator { … };
class BackgroundColorPaintDefinitionTest : public RenderingTest { … };
TEST_F(BackgroundColorPaintDefinitionTest, SimpleBGColorAnimationNotFallback) { … }
TEST_F(BackgroundColorPaintDefinitionTest, FallbackWithPixelMovingFilter) { … }
TEST_F(BackgroundColorPaintDefinitionTest, FallbackToMainNoAnimation) { … }
TEST_F(BackgroundColorPaintDefinitionTest, FallbackToMainCompositeAccumulate) { … }
TEST_F(BackgroundColorPaintDefinitionTest, MultipleAnimationsFallback) { … }
TEST_F(BackgroundColorPaintDefinitionTest, FallbackToMainCurrentColor) { … }
TEST_F(BackgroundColorPaintDefinitionTest, FallbackToMainSystemColor) { … }
TEST_F(BackgroundColorPaintDefinitionTest, CompositeColorMix) { … }
TEST_F(BackgroundColorPaintDefinitionTest, FallbackToMainOnUnresolvedColorMix) { … }
TEST_F(BackgroundColorPaintDefinitionTest,
TriggerRepaintCompositedToNonComposited) { … }
TEST_F(BackgroundColorPaintDefinitionTest, TriggerRepaintChangedKeyframe) { … }
TEST_F(BackgroundColorPaintDefinitionTest, NotStuckOnKNotComposited) { … }
TEST_F(BackgroundColorPaintDefinitionTest, Rep) { … }
TEST_F(BackgroundColorPaintDefinitionTest, TriggerRepaintNewStartTime) { … }
TEST_F(BackgroundColorPaintDefinitionTest,
ProxyClientPaintWithNoPropertyValue) { … }
TEST_F(BackgroundColorPaintDefinitionTest,
ProxyClientPaintWithNegativeProgress) { … }
TEST_F(BackgroundColorPaintDefinitionTest,
ProxyClientPaintWithLargerThanOneProgress) { … }
TEST_F(BackgroundColorPaintDefinitionTest,
ProxyClientPaintWithCloseToOneOffset) { … }
TEST_F(BackgroundColorPaintDefinitionTest,
ProxyClientPaintWithColorOfDifferingColorSpaces) { … }
TEST_F(BackgroundColorPaintDefinitionTest,
ProxyClientPaintWithColorOfDifferingColorSpacesReverse) { … }
}