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

Commit c9236a1c authored by Chiachang Wang's avatar Chiachang Wang
Browse files

Remove hidden connectivity methods reference in ApnContextTest

NetworkConfig is hidden connectivity class. It's now not
accessible outside the module. It's actually not used, so remove
it from the test.

Bug: 182859030
Test: atest ApnContextTest
Change-Id: If804d524613d451a578ef0a06defd95054ce0aeb
Merged-In: If804d524613d451a578ef0a06defd95054ce0aeb
parent 2f102d49
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@ import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;

import android.net.NetworkCapabilities;
import android.net.NetworkConfig;
import android.net.NetworkRequest;
import android.telephony.data.ApnSetting;
import android.test.suitebuilder.annotation.SmallTest;
@@ -41,9 +40,6 @@ import org.junit.Test;
import org.mockito.Mock;

public class ApnContextTest extends TelephonyTest {

    @Mock
    NetworkConfig mNetworkConfig;
    @Mock
    ApnSetting mApnSetting;

@@ -52,7 +48,7 @@ public class ApnContextTest extends TelephonyTest {
    @Before
    public void setUp() throws Exception {
        super.setUp(getClass().getSimpleName());
        mNetworkConfig.dependencyMet = true;

        mApnContext = new ApnContext(mPhone, ApnSetting.TYPE_DEFAULT, TAG, mDcTracker, 1);
    }