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

Commit b6a3ff2d authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Temporarily disabling tests for disabled feature

Some tests relying on the flag were left enabled by mistake.

Test: atest FrameworksServicesTests:com.android.server.net

Bug: 304347838
Bug: 325685265
Change-Id: I17a9fcaaa44f2c8b43c19e3445a329c8613ee3dd
Merged-In: I17a9fcaaa44f2c8b43c19e3445a329c8613ee3dd
parent 407ba05c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2143,13 +2143,14 @@ public class NetworkPolicyManagerServiceTest {
        assertFalse(mService.isUidNetworkingBlocked(UID_E, false));
    }

    @Ignore("Temporarily disabled until the feature is enabled")
    @Test
    @RequiresFlagsEnabled(Flags.FLAG_NETWORK_BLOCKED_FOR_TOP_SLEEPING_AND_ABOVE)
    public void testBackgroundChainEnabled() throws Exception {
        verify(mNetworkManager).setFirewallChainEnabled(FIREWALL_CHAIN_BACKGROUND, true);
    }


    @Ignore("Temporarily disabled until the feature is enabled")
    @Test
    @RequiresFlagsEnabled(Flags.FLAG_NETWORK_BLOCKED_FOR_TOP_SLEEPING_AND_ABOVE)
    public void testBackgroundChainOnProcStateChange() throws Exception {
@@ -2179,6 +2180,7 @@ public class NetworkPolicyManagerServiceTest {
        assertTrue(mService.isUidNetworkingBlocked(UID_A, false));
    }

    @Ignore("Temporarily disabled until the feature is enabled")
    @Test
    @RequiresFlagsEnabled(Flags.FLAG_NETWORK_BLOCKED_FOR_TOP_SLEEPING_AND_ABOVE)
    public void testBackgroundChainOnAllowlistChange() throws Exception {