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

Commit 84d156bc authored by Andreas Gampe's avatar Andreas Gampe
Browse files

NetworkPolicyManager: Annotate test

Annotate test introduced in 57e3d310
with @Test. Fixes the error-prone build.

Bug: 28791717
Test: m javac-check RUN_ERROR_PRONE=true
Test: m -j32 FrameworksServicesTests && adb install -r -g ${ANDROID_PRODUCT_OUT}/data/app/FrameworksServicesTests/FrameworksServicesTests.apk && adb shell am instrument -e class "com.android.server.NetworkPolicyManagerServiceTest" -w "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"
Change-Id: I03c1cde093be91fe52d83f2f2ffeb69a126a27d5
parent 14af6256
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -497,6 +497,7 @@ public class NetworkPolicyManagerServiceTest {
        futureIntent.assertNotReceived();
    }

    @Test
    @NetPolicyXml("uidA-whitelisted-restrict-background-on.xml")
    public void testWhitelistedAppIsNotifiedWhenBlacklisted() throws Exception {
        // Sanity checks.