7 #include "flutter/testing/testing.h"
8 #include "gtest/gtest.h"
16 TEST(EntityPassClipStackTest, CanPushAndPopEntities) {
46 TEST(EntityPassClipStackTest, CanPopEntitiesSafely) {
57 TEST(EntityPassClipStackTest, CanAppendNoChange) {
69 TEST(EntityPassClipStackTest, AppendCoverageNoChange) {
81 .coverage = std::nullopt,
83 entity, 0,
Point(0, 0));
92 TEST(EntityPassClipStackTest, AppendAndRestoreClipCoverage) {
105 entity, 0,
Point(0, 0));
116 auto restore_clip = std::make_shared<ClipRestoreContents>();
117 restore_clip->SetRestoreHeight(0);
124 entity, 0,
Point(0, 0));
133 TEST(EntityPassClipStackTest, UnbalancedRestore) {
141 auto restore_clip = std::make_shared<ClipRestoreContents>();
142 restore_clip->SetRestoreHeight(0);
149 entity, 0,
Point(0, 0));
160 TEST(EntityPassClipStackTest, ClipAndRestoreWithSubpasses) {
174 entity, 0,
Point(0, 0));
197 entity, 0,
Point(0, 0));