summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorge Lin <giolin@google.com>2023-10-17 20:39:16 +0000
committerGeorge Lin <giolin@google.com>2023-10-25 13:25:19 +0000
commit02ba1a4081bf2e9faae1e9d39b838658c507e957 (patch)
tree1a2d9828042d3a8064ed1aa29f8cde92982953c0 /tests
parent0768fb09137a8068b3326d24521563e93cd9230a (diff)
downloadThemePicker-02ba1a4081bf2e9faae1e9d39b838658c507e957.tar.gz
[WPP logging] Wire logLockScreenNotificationApplied
Test: Manually tested. See bug. Fixes: 305753308 Flag: NONE Change-Id: I0be9a454d6cb6f8634dd00f3a25814aeb6323086
Diffstat (limited to 'tests')
-rw-r--r--tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/NotificationSectionViewModelTest.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/NotificationSectionViewModelTest.kt b/tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/NotificationSectionViewModelTest.kt
index 5c3544a5..1ff1fc8c 100644
--- a/tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/NotificationSectionViewModelTest.kt
+++ b/tests/robotests/src/com/android/customization/picker/notifications/ui/viewmodel/NotificationSectionViewModelTest.kt
@@ -18,6 +18,8 @@
package com.android.customization.picker.notifications.ui.viewmodel
import androidx.test.filters.SmallTest
+import com.android.customization.module.logging.TestThemesUserEventLogger
+import com.android.customization.module.logging.ThemesUserEventLogger
import com.android.customization.picker.notifications.data.repository.NotificationsRepository
import com.android.customization.picker.notifications.domain.interactor.NotificationsInteractor
import com.android.customization.picker.notifications.domain.interactor.NotificationsSnapshotRestorer
@@ -44,6 +46,8 @@ import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class NotificationSectionViewModelTest {
+ private val logger: ThemesUserEventLogger = TestThemesUserEventLogger()
+
private lateinit var underTest: NotificationSectionViewModel
private lateinit var testScope: TestScope
@@ -73,6 +77,7 @@ class NotificationSectionViewModelTest {
underTest =
NotificationSectionViewModel(
interactor = interactor,
+ logger = logger,
)
}