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

Commit b2afa1ed authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Address some comments on IpManagerTest"

parents db4333a2 246bc1f7
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());