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

Commit dea2371e authored by Erik Kline's avatar Erik Kline Committed by android-build-merger
Browse files

Merge "Address some comments on IpManagerTest"

am: b2afa1ed

Change-Id: Ic986c23c693757b8311e0de0c0a94281db67f62d
parents cf07e0d5 b2afa1ed
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -38,12 +38,12 @@ import org.mockito.MockitoAnnotations;

/**
 * Tests for IpManager.
 *
 * @hide
 */
@RunWith(AndroidJUnit4.class)
@SmallTest
public class IpManagerTest {
    private static final int DEFAULT_AVOIDBADWIFI_CONFIG_VALUE = 1;

    @Mock private Context mContext;
    @Mock private INetworkManagementService mNMService;
    @Mock private Resources mResources;
@@ -54,7 +54,7 @@ public class IpManagerTest {

        when(mContext.getResources()).thenReturn(mResources);
        when(mResources.getInteger(R.integer.config_networkAvoidBadWifi))
                .thenReturn(0);
                .thenReturn(DEFAULT_AVOIDBADWIFI_CONFIG_VALUE);

        mContentResolver = new MockContentResolver();
        mContentResolver.addProvider(Settings.AUTHORITY, new FakeSettingsProvider());