Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08e7fe6b authored by Arthur Hung's avatar Arthur Hung
Browse files

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
parent 6c8661ac
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1026,6 +1026,7 @@ protected:
};

TEST_F(SmallAreaDetectionTest, SmallDirtyLayer) {
    SET_FLAG_FOR_TEST(flags::enable_small_area_detection, true);
    auto layer = createLegacyAndFrontedEndLayer(1);

    nsecs_t time = systemTime();
@@ -1043,6 +1044,7 @@ TEST_F(SmallAreaDetectionTest, SmallDirtyLayer) {
}

TEST_F(SmallAreaDetectionTest, NotSmallDirtyLayer) {
    SET_FLAG_FOR_TEST(flags::enable_small_area_detection, true);
    auto layer = createLegacyAndFrontedEndLayer(1);

    nsecs_t time = systemTime();
@@ -1060,6 +1062,7 @@ TEST_F(SmallAreaDetectionTest, NotSmallDirtyLayer) {
}

TEST_F(SmallAreaDetectionTest, smallDirtyLayerWithMatrix) {
    SET_FLAG_FOR_TEST(flags::enable_small_area_detection, true);
    auto layer = createLegacyAndFrontedEndLayer(1);

    nsecs_t time = systemTime();