Merge "Wrap subManager creation with createForAllProfiles" into main

This commit is contained in:
Ling Ma
2024-01-23 18:03:11 +00:00
committed by Android (Google) Code Review
15 changed files with 34 additions and 38 deletions

View File

@@ -49,7 +49,8 @@ class OpenNetworkSelectPagePreferenceControllerTest {
}
private val mockSubscriptionManager = mock<SubscriptionManager> {
on { activeSubscriptionInfoList } doAnswer { listOf(subscriptionInfo) }
on { createForAllUserProfiles() } doReturn mock
on { getActiveSubscriptionInfo(SUB_ID) } doReturn subscriptionInfo
}
private val context: Context = spy(ApplicationProvider.getApplicationContext()) {