Fixes failing CustomizationProviderTest. am: 3528f21216 am: 19762ee362 am: 7137d9165d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21475552 Change-Id: I68d57434bfc8133effa43fba7d1dbff4bc6ecd52 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
committed by
Automerger Merge Worker
commit
d775a958c7
@@ -131,7 +131,7 @@ class CustomizationProvider :
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
return runBlocking { insertSelection(values) }
|
||||
return runBlocking(mainDispatcher) { insertSelection(values) }
|
||||
}
|
||||
|
||||
override fun query(
|
||||
@@ -171,7 +171,7 @@ class CustomizationProvider :
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
|
||||
return runBlocking { deleteSelection(uri, selectionArgs) }
|
||||
return runBlocking(mainDispatcher) { deleteSelection(uri, selectionArgs) }
|
||||
}
|
||||
|
||||
override fun call(method: String, arg: String?, extras: Bundle?): Bundle? {
|
||||
|
||||
@@ -62,7 +62,6 @@ import com.android.systemui.util.mockito.whenever
|
||||
import com.android.systemui.util.settings.FakeSettings
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import kotlinx.coroutines.ExperimentalCoroutinesApi
|
||||
import kotlinx.coroutines.test.StandardTestDispatcher
|
||||
import kotlinx.coroutines.test.TestScope
|
||||
import kotlinx.coroutines.test.UnconfinedTestDispatcher
|
||||
import kotlinx.coroutines.test.runTest
|
||||
@@ -104,7 +103,7 @@ class CustomizationProviderTest : SysuiTestCase() {
|
||||
whenever(backgroundHandler.looper).thenReturn(TestableLooper.get(this).looper)
|
||||
|
||||
underTest = CustomizationProvider()
|
||||
val testDispatcher = StandardTestDispatcher()
|
||||
val testDispatcher = UnconfinedTestDispatcher()
|
||||
testScope = TestScope(testDispatcher)
|
||||
val localUserSelectionManager =
|
||||
KeyguardQuickAffordanceLocalUserSelectionManager(
|
||||
|
||||
Reference in New Issue
Block a user