#include "cc/paint/paint_filter.h"
#include "cc/paint/image_provider.h"
#include "cc/paint/paint_op.h"
#include "cc/test/skia_common.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/effects/SkLumaColorFilter.h"
namespace cc {
namespace {
class MockImageProvider : public ImageProvider { … };
sk_sp<PaintFilter> CreateTestFilter(PaintFilter::Type filter_type,
bool has_discardable_images) { … }
}
class PaintFilterTest : public ::testing::TestWithParam<uint8_t> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(PaintFilterTest, HasDiscardableImagesYes) { … }
TEST_P(PaintFilterTest, HasDiscardableImagesNo) { … }
TEST_P(PaintFilterTest, SnapshotWithImages) { … }
TEST(PaintFilterTest, ImageAnalysisState) { … }
}