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

Commit 3b3f206b authored by Lyn Han's avatar Lyn Han Committed by Android (Google) Code Review
Browse files

Merge "Add SystemSettingsRepository to customization tests" into main

parents 979437de 11b6c944
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import com.android.customization.picker.notifications.domain.interactor.Notifica
import com.android.systemui.shared.notifications.data.repository.NotificationSettingsRepository
import com.android.systemui.shared.notifications.domain.interactor.NotificationSettingsInteractor
import com.android.systemui.shared.settings.data.repository.FakeSecureSettingsRepository
import com.android.systemui.shared.settings.data.repository.FakeSystemSettingsRepository
import com.android.wallpaper.testing.FakeSnapshotStore
import com.android.wallpaper.testing.collectLastValue
import com.google.common.truth.Truth.assertThat
@@ -44,6 +45,7 @@ class NotificationsSnapshotRestorerTest {

    private lateinit var underTest: NotificationsSnapshotRestorer
    private lateinit var fakeSecureSettingsRepository: FakeSecureSettingsRepository
    private lateinit var fakeSystemSettingsRepository: FakeSystemSettingsRepository
    private lateinit var interactor: NotificationSettingsInteractor

    private lateinit var testScope: TestScope
@@ -54,6 +56,7 @@ class NotificationsSnapshotRestorerTest {
        Dispatchers.setMain(testDispatcher)
        testScope = TestScope(testDispatcher)
        fakeSecureSettingsRepository = FakeSecureSettingsRepository()
        fakeSystemSettingsRepository = FakeSystemSettingsRepository()
        interactor =
            NotificationSettingsInteractor(
                repository =
@@ -61,6 +64,7 @@ class NotificationsSnapshotRestorerTest {
                        scope = testScope.backgroundScope,
                        backgroundDispatcher = testDispatcher,
                        secureSettingsRepository = fakeSecureSettingsRepository,
                        systemSettingsRepository = fakeSystemSettingsRepository,
                    ),
            )
        underTest =
+2 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import com.android.customization.module.logging.ThemesUserEventLogger
import com.android.systemui.shared.notifications.data.repository.NotificationSettingsRepository
import com.android.systemui.shared.notifications.domain.interactor.NotificationSettingsInteractor
import com.android.systemui.shared.settings.data.repository.FakeSecureSettingsRepository
import com.android.systemui.shared.settings.data.repository.FakeSystemSettingsRepository
import com.android.wallpaper.testing.collectLastValue
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.Dispatchers
@@ -62,6 +63,7 @@ class NotificationSectionViewModelTest {
                        scope = testScope.backgroundScope,
                        backgroundDispatcher = testDispatcher,
                        secureSettingsRepository = FakeSecureSettingsRepository(),
                        systemSettingsRepository = FakeSystemSettingsRepository(),
                    ),
            )