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

Commit 246bc1f7 authored by Erik Kline's avatar Erik Kline
Browse files

Address some comments on IpManagerTest

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
Bug: 26991160
Change-Id: Ib543874188537e31422206d67d1760762a7c85cd
parent db4333a2
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());