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

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

Merge "Address some comments on IpManagerTest" am: b2afa1ed am: dea2371e

am: eb04c520

Change-Id: I8716a2f49c6adec97b260c32d65d53414068e41d
parents 4c4936f4 eb04c520
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());