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

Commit f135a733 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

Merge "Fix FlagOverrideSampleTest Bug: 141576561" into ub-launcher3-master

parents 93f36ca8 b1ee7d24
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -21,13 +21,19 @@ public class FlagOverrideSampleTest {
    @Rule
    public final FlagOverrideRule flags = new FlagOverrideRule();

    @FlagOverride(key = "EXAMPLE_FLAG", value = true)
    /**
     * Test if flag can be overriden to true via annoation.
     */
    @FlagOverride(key = "FAKE_LANDSCAPE_UI", value = true)
    @Test
    public void withFlagOn() {
        assertTrue(FeatureFlags.FAKE_LANDSCAPE_UI.get());
    }

    @FlagOverride(key = "EXAMPLE_FLAG", value = false)
    /**
     * Test if flag can be overriden to false via annoation.
     */
    @FlagOverride(key = "FAKE_LANDSCAPE_UI", value = false)
    @Test
    public void withFlagOff() {
        assertFalse(FeatureFlags.FAKE_LANDSCAPE_UI.get());