5#include "flutter/display_list/effects/dl_mask_filter.h"
6#include "flutter/display_list/testing/dl_test_equality.h"
7#include "flutter/display_list/utils/dl_comparable.h"
8#include "gtest/gtest.h"
13TEST(DisplayListMaskFilter, BlurConstructor) {
17TEST(DisplayListMaskFilter, BlurShared) {
19 ASSERT_NE(filter.
shared().get(), &filter);
20 ASSERT_EQ(*filter.
shared(), filter);
23TEST(DisplayListMaskFilter, BlurAsBlur) {
25 ASSERT_NE(filter.
asBlur(),
nullptr);
26 ASSERT_EQ(filter.
asBlur(), &filter);
29TEST(DisplayListMaskFilter, BlurContents) {
32 ASSERT_EQ(filter.
sigma(), 5.0);
35TEST(DisplayListMaskFilter, BlurEquals) {
41TEST(DisplayListMaskFilter, BlurNotEquals) {
83 const std::shared_ptr<const DlMaskFilter>&
b) {
92 const std::shared_ptr<const DlMaskFilter>&
b) {
100TEST(DisplayListMaskFilter, ComparableTemplates) {
104 std::shared_ptr<DlMaskFilter> shared_null;
const DlBlurMaskFilter * asBlur() const override
DlBlurStyle style() const
std::shared_ptr< DlMaskFilter > shared() const override
void testNotEquals(DlMaskFilter *a, DlMaskFilter *b)
void testEquals(DlMaskFilter *a, DlMaskFilter *b)
static void TestNotEquals(T &source1, T &source2, const std::string &label)
static void TestEquals(T &source1, T &source2)
TEST(DisplayListComplexity, EmptyDisplayList)
bool Equals(const T *a, const T *b)
bool NotEquals(const T *a, const T *b)
@ kNormal
fuzzy inside and outside
@ kInner
fuzzy inside, nothing outside