From e4f5ac6b24daa955cb1f4e0fa1d98fd9c4cd77ab Mon Sep 17 00:00:00 2001 From: Chaohui Wang Date: Thu, 14 Sep 2023 15:57:55 +0800 Subject: [PATCH] Clean up SettingsUnitTests unused dependencies Bug: 290856342 Test: atest SettingsUnitTests Change-Id: Ifcec968b3dfca965c8cd5b897bbdf84dfe220fd5 --- tests/unit/Android.bp | 5 ----- .../settings/network/AllowedNetworkTypesListenerTest.java | 2 -- 2 files changed, 7 deletions(-) diff --git a/tests/unit/Android.bp b/tests/unit/Android.bp index cc003ea0d74..0ded3974905 100644 --- a/tests/unit/Android.bp +++ b/tests/unit/Android.bp @@ -13,24 +13,19 @@ android_test { certificate: "platform", libs: [ - "android.test.runner", "telephony-common", "ims-common", - "android.test.base", - "android.test.mock", ], static_libs: [ "androidx.arch.core_core-testing", "androidx.test.core", "androidx.test.rules", - "androidx.test.espresso.core", "androidx.test.ext.junit", "androidx.preference_preference", "mockito-target-minus-junit4", "platform-test-annotations", "truth-prebuilt", - "androidx.test.uiautomator_uiautomator", "kotlinx_coroutines_test", // Don't add SettingsLib libraries here - you can use them directly as they are in the // instrumented Settings app. diff --git a/tests/unit/src/com/android/settings/network/AllowedNetworkTypesListenerTest.java b/tests/unit/src/com/android/settings/network/AllowedNetworkTypesListenerTest.java index c18477ab078..ba824d29bea 100644 --- a/tests/unit/src/com/android/settings/network/AllowedNetworkTypesListenerTest.java +++ b/tests/unit/src/com/android/settings/network/AllowedNetworkTypesListenerTest.java @@ -28,7 +28,6 @@ import android.os.HandlerExecutor; import android.telephony.RadioAccessFamily; import android.telephony.TelephonyCallback; import android.telephony.TelephonyManager; -import android.test.mock.MockContentResolver; import androidx.test.annotation.UiThreadTest; import androidx.test.core.app.ApplicationProvider; @@ -46,7 +45,6 @@ public class AllowedNetworkTypesListenerTest { private static final int SUB_ID = 1; private Context mContext; - private MockContentResolver mResolver; private AllowedNetworkTypesListener mAllowedNetworkTypesListener; @Mock