Skip to content

Commit 398b05b

Browse files
Arthur HungLeonScroggins
authored andcommitted
RESTRICT AUTOMERGE: Update tests to treat enable_small_area_detection as true
Explictitly set enable_small_area_detection flag to true so the tests could always pass. Bug: 323232586 Test: libsurfaceflinger_unittest Change-Id: Ie21becc71f968fa8658824ef143dbb7fe4f110a1
1 parent b283ec3 commit 398b05b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

services/surfaceflinger/tests/unittests/LayerHistoryIntegrationTest.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,7 @@ class SmallAreaDetectionTest : public LayerHistoryIntegrationTest {
10301030
};
10311031

10321032
TEST_F(SmallAreaDetectionTest, SmallDirtyLayer) {
1033+
SET_FLAG_FOR_TEST(flags::enable_small_area_detection, true);
10331034
auto layer = createLegacyAndFrontedEndLayer(1);
10341035

10351036
nsecs_t time = systemTime();
@@ -1047,6 +1048,7 @@ TEST_F(SmallAreaDetectionTest, SmallDirtyLayer) {
10471048
}
10481049

10491050
TEST_F(SmallAreaDetectionTest, NotSmallDirtyLayer) {
1051+
SET_FLAG_FOR_TEST(flags::enable_small_area_detection, true);
10501052
auto layer = createLegacyAndFrontedEndLayer(1);
10511053

10521054
nsecs_t time = systemTime();
@@ -1064,6 +1066,7 @@ TEST_F(SmallAreaDetectionTest, NotSmallDirtyLayer) {
10641066
}
10651067

10661068
TEST_F(SmallAreaDetectionTest, smallDirtyLayerWithMatrix) {
1069+
SET_FLAG_FOR_TEST(flags::enable_small_area_detection, true);
10671070
auto layer = createLegacyAndFrontedEndLayer(1);
10681071

10691072
nsecs_t time = systemTime();

0 commit comments

Comments
 (0)