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

Commit b0b67fc1 authored by Michael Plass's avatar Michael Plass Committed by Android (Google) Code Review
Browse files

Merge "Add missing SmallTest annotations in frameworks/base/wifi"

parents 0a874d25 870d3814
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -18,14 +18,14 @@ package android.net.wifi;

import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;

import android.os.Parcel;
import android.net.MacAddress;
import android.net.wifi.WifiConfiguration.NetworkSelectionStatus;
import android.net.wifi.WifiInfo;
import android.os.Parcel;
import android.support.test.filters.SmallTest;

import org.junit.Before;
import org.junit.Test;
@@ -33,6 +33,7 @@ import org.junit.Test;
/**
 * Unit tests for {@link android.net.wifi.WifiConfiguration}.
 */
@SmallTest
public class WifiConfigurationTest {

    @Before
+3 −1
Original line number Diff line number Diff line
@@ -19,14 +19,16 @@ package android.net.wifi;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import android.support.test.filters.SmallTest;

import org.junit.Test;

import java.nio.charset.StandardCharsets;
import java.util.Arrays;

/**
 * Unit tests for {@link android.net.wifi.WifiSsid}.
 */
@SmallTest
public class WifiSsidTest {

    private static final String TEST_SSID = "Test SSID";
+3 −0
Original line number Diff line number Diff line
@@ -19,11 +19,14 @@ package android.net.wifi.p2p;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import android.support.test.filters.SmallTest;

import org.junit.Test;

/**
 * Unit test harness for {@link android.net.wifi.p2p.WifiP2pDevice}
 */
@SmallTest
public class WifiP2pDeviceTest {

    /**
+2 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ import static org.mockito.Mockito.verify;

import android.content.Context;
import android.os.test.TestLooper;
import android.support.test.filters.SmallTest;

import libcore.junit.util.ResourceLeakageDetector;

@@ -33,6 +34,7 @@ import org.mockito.MockitoAnnotations;
/**
 * Unit test harness for WifiP2pManager.
 */
@SmallTest
public class WifiP2pManagerTest {
    private WifiP2pManager mDut;
    private TestLooper mTestLooper;
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import android.net.wifi.aware.PeerHandle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.test.TestLooper;
import android.support.test.filters.SmallTest;

import org.junit.Before;
import org.junit.Test;
@@ -45,6 +46,7 @@ import java.util.concurrent.Executor;
/**
 * Unit test harness for WifiRttManager class.
 */
@SmallTest
public class WifiRttManagerTest {
    private WifiRttManager mDut;
    private TestLooper mMockLooper;