Make sure the flags are setup correctly in the test.

Test: atest DesktopModePreferenceControllerTest
Flag: EXEMPT (bug fix)
Fix: 396663349
Change-Id: I8954dfad0a15791545f6c2ff88a488c553e02c69
This commit is contained in:
Pierre Barbier de Reuille
2025-02-14 21:47:25 +00:00
parent 63242bc3ff
commit f4505d8b82

View File

@@ -114,6 +114,7 @@ public class DesktopModePreferenceControllerTest {
}
@Test
@DisableFlags(Flags.FLAG_SHOW_DESKTOP_EXPERIENCE_DEV_OPTION)
public void isAvailable_desktopModeDevOptionNotSupported_returnsFalse() {
mController = spy(mController);
// Dev option is not supported if Desktop mode is not supported
@@ -125,6 +126,7 @@ public class DesktopModePreferenceControllerTest {
}
@Test
@DisableFlags(Flags.FLAG_SHOW_DESKTOP_EXPERIENCE_DEV_OPTION)
public void isAvailable_desktopModeDevOptionSupported_returnsTrue() {
mController = spy(mController);