зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1688062 - Update target SDK to API 30. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D106556
This commit is contained in:
Родитель
722fdbc00b
Коммит
b69e57d56f
|
@ -48,7 +48,7 @@ def android_sdk_root(value):
|
|||
|
||||
@dependable
|
||||
def android_sdk_version():
|
||||
return namespace(build_tools_version="29.0.3", target_sdk_version="29")
|
||||
return namespace(build_tools_version="30.0.2", target_sdk_version="30")
|
||||
|
||||
|
||||
@depends(android_sdk_root, android_sdk_version)
|
||||
|
|
|
@ -8,11 +8,11 @@ import androidx.test.filters.MediumTest
|
|||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
|
||||
import android.os.Handler
|
||||
import android.os.Looper
|
||||
import android.view.KeyEvent
|
||||
|
||||
import org.hamcrest.Matchers.*
|
||||
|
||||
import org.junit.Ignore
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
|
@ -27,7 +27,6 @@ import org.mozilla.geckoview.Autocomplete.LoginSelectOption
|
|||
import org.mozilla.geckoview.Autocomplete.LoginStorageDelegate
|
||||
import org.mozilla.geckoview.test.rule.GeckoSessionTestRule
|
||||
import org.mozilla.geckoview.test.rule.GeckoSessionTestRule.AssertCalled
|
||||
import org.mozilla.geckoview.test.rule.GeckoSessionTestRule.WithDisplay
|
||||
import org.mozilla.geckoview.test.util.Callbacks
|
||||
|
||||
|
||||
|
@ -61,7 +60,7 @@ class AutocompleteTest : BaseSessionTest() {
|
|||
: GeckoResult<Array<LoginEntry>>? {
|
||||
assertThat("Domain should match", domain, equalTo("localhost"))
|
||||
|
||||
Handler().postDelayed({
|
||||
Handler(Looper.getMainLooper()).postDelayed({
|
||||
fetchHandled.complete(null)
|
||||
}, acceptDelay)
|
||||
|
||||
|
@ -870,7 +869,7 @@ class AutocompleteTest : BaseSessionTest() {
|
|||
}
|
||||
|
||||
|
||||
Handler().postDelayed({
|
||||
Handler(Looper.getMainLooper()).postDelayed({
|
||||
selectHandled.complete(null)
|
||||
}, acceptDelay)
|
||||
|
||||
|
@ -1128,7 +1127,7 @@ class AutocompleteTest : BaseSessionTest() {
|
|||
.password(passMod)
|
||||
.build())
|
||||
|
||||
Handler().postDelayed({
|
||||
Handler(Looper.getMainLooper()).postDelayed({
|
||||
selectHandled.complete(null)
|
||||
}, acceptDelay)
|
||||
|
||||
|
@ -1256,7 +1255,7 @@ class AutocompleteTest : BaseSessionTest() {
|
|||
genPass = login.password
|
||||
|
||||
if (numSelects == 0) {
|
||||
Handler().postDelayed({
|
||||
Handler(Looper.getMainLooper()).postDelayed({
|
||||
selectHandled.complete(null)
|
||||
}, acceptDelay)
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@ class RemoteGeckoService : Service() {
|
|||
|
||||
var session: GeckoSession? = null;
|
||||
|
||||
class TestHandler: Handler() {
|
||||
class TestHandler: Handler(Looper.getMainLooper()) {
|
||||
override fun handleMessage(msg: Message) {
|
||||
when (msg.what) {
|
||||
CMD_CRASH_PARENT_NATIVE -> {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
platform-tools
|
||||
build-tools;29.0.3
|
||||
platforms;android-29
|
||||
build-tools;30.0.2
|
||||
platforms;android-30
|
||||
emulator
|
||||
|
|
Загрузка…
Ссылка в новой задаче