Loading packages/SystemUI/tests/src/com/android/systemui/qs/footer/ui/viewmodel/FooterActionsViewModelTest.kt +4 −2 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import com.android.systemui.util.settings.FakeGlobalSettings import com.google.common.truth.Truth.assertThat import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.launch import kotlinx.coroutines.test.StandardTestDispatcher import kotlinx.coroutines.test.TestScope import kotlinx.coroutines.test.advanceUntilIdle import kotlinx.coroutines.test.runTest Loading @@ -60,7 +61,8 @@ import org.mockito.Mockito.`when` as whenever @RunWith(AndroidJUnit4::class) @RunWithLooper class FooterActionsViewModelTest : SysuiTestCase() { private val testScope = TestScope() private val testDispatcher = StandardTestDispatcher() private val testScope = TestScope(testDispatcher) private lateinit var utils: FooterActionsTestUtils private val themedContext = ContextThemeWrapper(context, R.style.Theme_SystemUI_QuickSettings) Loading Loading @@ -127,7 +129,7 @@ class FooterActionsViewModelTest : SysuiTestCase() { fun userSwitcher() = runTest { val picture: Drawable = mock() val userInfoController = FakeUserInfoController(FakeInfo(picture = picture)) val settings = FakeGlobalSettings() val settings = FakeGlobalSettings(testDispatcher) val userId = 42 val userSwitcherControllerWrapper = MockUserSwitcherControllerWrapper(currentUserName = "foo") Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/airplane/data/repository/AirplaneModeRepositoryImplTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ class AirplaneModeRepositoryImplTest : SysuiTestCase() { fun setUp() { MockitoAnnotations.initMocks(this) settings = FakeGlobalSettings() settings = FakeGlobalSettings(testContext) whenever(telephonyManager.emergencyCallbackMode).thenReturn(false) whenever(subscriptionManager.activeSubscriptionIdList).thenReturn(intArrayOf()) Loading Loading
packages/SystemUI/tests/src/com/android/systemui/qs/footer/ui/viewmodel/FooterActionsViewModelTest.kt +4 −2 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import com.android.systemui.util.settings.FakeGlobalSettings import com.google.common.truth.Truth.assertThat import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.launch import kotlinx.coroutines.test.StandardTestDispatcher import kotlinx.coroutines.test.TestScope import kotlinx.coroutines.test.advanceUntilIdle import kotlinx.coroutines.test.runTest Loading @@ -60,7 +61,8 @@ import org.mockito.Mockito.`when` as whenever @RunWith(AndroidJUnit4::class) @RunWithLooper class FooterActionsViewModelTest : SysuiTestCase() { private val testScope = TestScope() private val testDispatcher = StandardTestDispatcher() private val testScope = TestScope(testDispatcher) private lateinit var utils: FooterActionsTestUtils private val themedContext = ContextThemeWrapper(context, R.style.Theme_SystemUI_QuickSettings) Loading Loading @@ -127,7 +129,7 @@ class FooterActionsViewModelTest : SysuiTestCase() { fun userSwitcher() = runTest { val picture: Drawable = mock() val userInfoController = FakeUserInfoController(FakeInfo(picture = picture)) val settings = FakeGlobalSettings() val settings = FakeGlobalSettings(testDispatcher) val userId = 42 val userSwitcherControllerWrapper = MockUserSwitcherControllerWrapper(currentUserName = "foo") Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/airplane/data/repository/AirplaneModeRepositoryImplTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -62,7 +62,7 @@ class AirplaneModeRepositoryImplTest : SysuiTestCase() { fun setUp() { MockitoAnnotations.initMocks(this) settings = FakeGlobalSettings() settings = FakeGlobalSettings(testContext) whenever(telephonyManager.emergencyCallbackMode).thenReturn(false) whenever(subscriptionManager.activeSubscriptionIdList).thenReturn(intArrayOf()) Loading