diff options
author | George Lin <giolin@google.com> | 2023-10-16 18:36:20 +0000 |
---|---|---|
committer | George Lin <giolin@google.com> | 2023-10-24 21:38:13 +0000 |
commit | e209f49a887092a5dff2c7b6baad925b99160dbb (patch) | |
tree | 9dca29a5d8a544ebd2adcc3b0dc10ed93e1ef28b /tests | |
parent | a5b2679b1140bd136a5b7277bfc281032087060b (diff) | |
download | ThemePicker-e209f49a887092a5dff2c7b6baad925b99160dbb.tar.gz |
[WPP logging] Wire logClockApplied (1/2)
Test: Manually tested. See bug.
Bug: 305753671
Flag: NONE
Change-Id: Ibf282179a098bc105469a3fa0047b1febcfab241
Diffstat (limited to 'tests')
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/common/src/com/android/customization/testing/TestCustomizationInjector.kt b/tests/common/src/com/android/customization/testing/TestCustomizationInjector.kt index 065a1f07..22a8336f 100644 --- a/tests/common/src/com/android/customization/testing/TestCustomizationInjector.kt +++ b/tests/common/src/com/android/customization/testing/TestCustomizationInjector.kt @@ -67,6 +67,7 @@ constructor( interactor: ClockPickerInteractor, clockViewFactory: ClockViewFactory, resources: Resources, + logger: ThemesUserEventLogger, ): ClockCarouselViewModel.Factory { throw UnsupportedOperationException("not implemented") } diff --git a/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/ClockCarouselViewModelTest.kt b/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/ClockCarouselViewModelTest.kt index 813d8886..46afe35d 100644 --- a/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/ClockCarouselViewModelTest.kt +++ b/tests/robotests/src/com/android/customization/picker/clock/ui/viewmodel/ClockCarouselViewModelTest.kt @@ -17,6 +17,7 @@ package com.android.customization.picker.clock.ui.viewmodel import androidx.test.filters.SmallTest import androidx.test.platform.app.InstrumentationRegistry +import com.android.customization.module.logging.TestThemesUserEventLogger import com.android.customization.picker.clock.data.repository.ClockPickerRepository import com.android.customization.picker.clock.data.repository.FakeClockPickerRepository import com.android.customization.picker.clock.domain.interactor.ClockPickerInteractor @@ -86,6 +87,7 @@ class ClockCarouselViewModelTest { backgroundDispatcher = testDispatcher, clockViewFactory = clockViewFactory, resources = InstrumentationRegistry.getInstrumentation().targetContext.resources, + logger = TestThemesUserEventLogger(), ) val observedSelectedIndex = collectLastValue(underTest.selectedIndex) advanceTimeBy(ClockCarouselViewModel.CLOCKS_EVENT_UPDATE_DELAY_MILLIS) |