#include <stddef.h>
#include <limits>
#include <string>
#include <utility>
#include "base/test/scoped_feature_list.h"
#include "cc/base/features.h"
#include "cc/paint/filter_operation.h"
#include "cc/paint/filter_operations.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
namespace cc {
namespace {
TEST(FilterOperationsTest, MapRectBlur) { … }
TEST(FilterOperationsTest, MapRectBlurOverflow) { … }
TEST(FilterOperationsTest, MapRectReverseBlur) { … }
TEST(FilterOperationsTest, MapRectLargeBlurReferenceFilter) { … }
TEST(FilterOperationsTest, MapRectDropShadowReferenceFilter) { … }
TEST(FilterOperationsTest, MapRectReverseDropShadowReferenceFilter) { … }
TEST(FilterOperationsTest, MapRectOffsetReferenceFilter) { … }
TEST(FilterOperationsTest, MapRectReverseOffsetReferenceFilter) { … }
TEST(FilterOperationsTest, MapRectCombineNonCommutative) { … }
TEST(FilterOperationsTest, MapRectReverseCombineNonCommutative) { … }
TEST(FilterOperationsTest, MapRectNullReferenceFilter) { … }
TEST(FilterOperationsTest, MapRectReverseNullReferenceFilter) { … }
TEST(FilterOperationsTest, MapRectDropShadow) { … }
TEST(FilterOperationsTest, MapRectReverseDropShadow) { … }
TEST(FilterOperationsTest, MapRectDropShadowDoesNotContract) { … }
TEST(FilterOperationsTest, MapRectReverseDropShadowDoesNotContract) { … }
TEST(FilterOperationsTest, MapRectOffset) { … }
TEST(FilterOperationsTest, MapRectReverseOffset) { … }
TEST(FilterOperationsTest, MapRectTypeConversionDoesNotOverflow) { … }
#define SAVE_RESTORE_AMOUNT(filter_name, filter_type, a) …
#define SAVE_RESTORE_OFFSET_AMOUNT_COLOR(filter_name, filter_type, a, b, c) …
#define SAVE_RESTORE_MATRIX(filter_name, filter_type, a) …
#define SAVE_RESTORE_AMOUNT_INSET(filter_name, filter_type, a, b) …
TEST(FilterOperationsTest, SaveAndRestore) { … }
TEST(FilterOperationsTest, BlendGrayscaleFilters) { … }
TEST(FilterOperationsTest, BlendGrayscaleWithNull) { … }
TEST(FilterOperationsTest, BlendSepiaFilters) { … }
TEST(FilterOperationsTest, BlendSepiaWithNull) { … }
TEST(FilterOperationsTest, BlendSaturateFilters) { … }
TEST(FilterOperationsTest, BlendSaturateWithNull) { … }
TEST(FilterOperationsTest, BlendHueRotateFilters) { … }
TEST(FilterOperationsTest, BlendHueRotateWithNull) { … }
TEST(FilterOperationsTest, BlendInvertFilters) { … }
TEST(FilterOperationsTest, BlendInvertWithNull) { … }
TEST(FilterOperationsTest, BlendBrightnessFilters) { … }
TEST(FilterOperationsTest, BlendBrightnessWithNull) { … }
TEST(FilterOperationsTest, BlendContrastFilters) { … }
TEST(FilterOperationsTest, BlendContrastWithNull) { … }
TEST(FilterOperationsTest, BlendOpacityFilters) { … }
TEST(FilterOperationsTest, BlendOpacityWithNull) { … }
TEST(FilterOperationsTest, BlendBlurFilters) { … }
TEST(FilterOperationsTest, BlendBlurWithNull) { … }
TEST(FilterOperationsTest, BlendDropShadowFilters) { … }
TEST(FilterOperationsTest, BlendDropShadowWithNull) { … }
TEST(FilterOperationsTest, BlendZoomFilters) { … }
TEST(FilterOperationsTest, BlendZoomWithNull) { … }
TEST(FilterOperationsTest, BlendSaturatingBrightnessFilters) { … }
TEST(FilterOperationsTest, BlendSaturatingBrightnessWithNull) { … }
TEST(FilterOperationsTest, BlendReferenceFilters) { … }
TEST(FilterOperationsTest, BlendReferenceWithNull) { … }
TEST(FilterOperationsTest, BlendMatchingSequences) { … }
TEST(FilterOperationsTest, BlendEmptyAndNonEmptySequences) { … }
TEST(FilterOperationsTest, BlendEmptySequences) { … }
TEST(FilterOperationsTest, BlendNonMatchingSequences) { … }
TEST(FilterOperationsTest, BlendRaggedSequences) { … }
TEST(FilterOperationsTest, ToString) { … }
TEST(FilterOperationsTest, HasFilterOfType) { … }
std::string PostTestCaseName(const ::testing::TestParamInfo<bool>& info) { … }
class UseMapRectFilterOperationsTest
: public testing::Test,
public testing::WithParamInterface<bool> { … };
UseMapRectFilterOperationsTest::UseMapRectFilterOperationsTest() { … }
TEST_P(UseMapRectFilterOperationsTest, ExpandRectForPixelMovement) { … }
TEST_P(UseMapRectFilterOperationsTest,
ExpandRectForPixelMovement_MultipleFilters) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}