diff options
| author | 2022-11-09 17:48:37 +0000 | |
|---|---|---|
| committer | 2022-11-11 17:00:54 +0000 | |
| commit | 03f378d49570efa6df5fd0bbb4911b78d963aa3e (patch) | |
| tree | cdb29fdd73ec0552c5babac2a2c98df50aa2ecad | |
| parent | d9e3ab4f3ecf935964b8dbdd7e106e4ad4f92afb (diff) | |
Enable testMediaRecommendationDisabled
It simply removes @ignore and replaces the foreground executor with
uiExecutor because it is the one used in removing the recommendation.
Bug: 229838140
Test: atest MediaDataManagerTest.
Test: checked via forrest/atest to make sure it is not flaky.
Change-Id: I758a950a061c6bb20b9cc6a5484500a8609078a6
| -rw-r--r-- | packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/MediaDataManagerTest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/MediaDataManagerTest.kt b/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/MediaDataManagerTest.kt index 8bd71632638d..52b694fac07c 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/MediaDataManagerTest.kt +++ b/packages/SystemUI/tests/src/com/android/systemui/media/controls/pipeline/MediaDataManagerTest.kt @@ -62,7 +62,6 @@ import com.android.systemui.util.time.FakeSystemClock import com.google.common.truth.Truth.assertThat import org.junit.After import org.junit.Before -import org.junit.Ignore import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith @@ -806,7 +805,6 @@ class MediaDataManagerTest : SysuiTestCase() { .onSmartspaceMediaDataLoaded(anyObject(), anyObject(), anyBoolean()) } - @Ignore("b/229838140") @Test fun testMediaRecommendationDisabled_removesSmartspaceData() { // GIVEN a media recommendation card is present @@ -823,7 +821,9 @@ class MediaDataManagerTest : SysuiTestCase() { tunableCaptor.value.onTuningChanged(Settings.Secure.MEDIA_CONTROLS_RECOMMENDATION, "0") // THEN listeners are notified + uiExecutor.advanceClockToLast() foregroundExecutor.advanceClockToLast() + uiExecutor.runAllReady() foregroundExecutor.runAllReady() verify(listener).onSmartspaceMediaDataRemoved(eq(KEY_MEDIA_SMARTSPACE), eq(true)) } |