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

Commit 87468c3c authored by Ram Indani's avatar Ram Indani
Browse files

Update invalid Compatibility to 3

ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_GTE uses the value 2
for the compatibility, and will fail the check for
invalid compatibility.
Increasing the compatibility to 3 for invalid test case

BUG: 382247134
Test: atest FrameRateUtilsTest
Flag: EXEMPT test fix
Change-Id: If3ceac2f673221244a16fd499b80e7929ecb50f6
parent f09d630c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ TEST(FrameRateUtilsTest, ValidateFrameRate) {
    // Invalid compatibility.
    EXPECT_FALSE(
            ValidateFrameRate(60.0f, -1, ANATIVEWINDOW_CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS, ""));
    EXPECT_FALSE(ValidateFrameRate(60.0f, 2, ANATIVEWINDOW_CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS, ""));
    EXPECT_FALSE(ValidateFrameRate(60.0f, 3, ANATIVEWINDOW_CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS, ""));

    // Invalid change frame rate strategy.
    if (flags::bq_setframerate()) {