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

Commit 304a6a1d authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Ignore testReevaluateNetwork until Q" into rvc-dev am: b6b0aee6

Change-Id: Ib7c1dac421d6e5a511995f75f1f4fc81987aab0b
parents 5c067e27 b6b0aee6
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -18,19 +18,26 @@ package android.net;


import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertEquals;


import android.os.Build;
import android.os.RemoteException;
import android.os.RemoteException;


import androidx.test.filters.SmallTest;
import androidx.test.filters.SmallTest;
import androidx.test.runner.AndroidJUnit4;
import androidx.test.runner.AndroidJUnit4;


import com.android.internal.logging.nano.MetricsProto.MetricsEvent;
import com.android.internal.logging.nano.MetricsProto.MetricsEvent;
import com.android.testutils.DevSdkIgnoreRule;
import com.android.testutils.DevSdkIgnoreRule.IgnoreUpTo;


import org.junit.Rule;
import org.junit.Test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runner.RunWith;


@RunWith(AndroidJUnit4.class)
@RunWith(AndroidJUnit4.class)
@SmallTest
@SmallTest
public class CaptivePortalTest {
public class CaptivePortalTest {
    @Rule
    public final DevSdkIgnoreRule ignoreRule = new DevSdkIgnoreRule();

    private static final int DEFAULT_TIMEOUT_MS = 5000;
    private static final int DEFAULT_TIMEOUT_MS = 5000;
    private static final String TEST_PACKAGE_NAME = "com.google.android.test";
    private static final String TEST_PACKAGE_NAME = "com.google.android.test";


@@ -84,6 +91,7 @@ public class CaptivePortalTest {
        assertEquals(result.mCode, CaptivePortal.APP_RETURN_WANTED_AS_IS);
        assertEquals(result.mCode, CaptivePortal.APP_RETURN_WANTED_AS_IS);
    }
    }


    @IgnoreUpTo(Build.VERSION_CODES.Q)
    @Test
    @Test
    public void testReevaluateNetwork() {
    public void testReevaluateNetwork() {
        final MyCaptivePortalImpl result = runCaptivePortalTest(c -> c.reevaluateNetwork());
        final MyCaptivePortalImpl result = runCaptivePortalTest(c -> c.reevaluateNetwork());