From c05a70a4ca769664f2315fff1f3bf3cb2ce3e300 Mon Sep 17 00:00:00 2001 From: Brett Chabot Date: Thu, 13 Dec 2018 19:06:42 -0800 Subject: [PATCH] Migrate packages/inputmethods/LatinIME to androidx.test See go/jetpack-test-android-migration Test: make checkbuild Change-Id: I63edeced1465725cd8d6467cd75ea1acc2608932 --- build.gradle | 2 +- tests/Android.bp | 2 +- tests/AndroidManifest.xml | 2 +- tests/AndroidTest.xml | 2 +- .../compat/LocaleSpanCompatUtilsTests.java | 9 ++++----- .../compat/SuggestionSpanUtilsTest.java | 13 +++++++------ .../compat/TextInfoCompatUtilsTests.java | 8 ++++---- .../keyboard/KeyboardLayoutTest.java | 8 ++++---- .../keyboard/KeyboardThemeTests.java | 19 ++++++++++--------- ...MoreKeysKeyboardBuilderAutoOrderTests.java | 4 ++-- ...oreKeysKeyboardBuilderFixedOrderTests.java | 4 ++-- .../MoreKeysKeyboardBuilderMaxOrderTests.java | 4 ++-- .../internal/HermiteInterpolatorTests.java | 4 ++-- .../internal/KeyboardTextsSetTests.java | 15 ++++++++------- .../keyboard/internal/MatrixUtilsTests.java | 7 +++---- .../internal/MoreKeySpecSplitTests.java | 13 +++++++------ .../MoreKeySpecStringReferenceTests.java | 11 ++++++----- .../internal/PointerTrackerQueueTests.java | 4 ++-- .../internal/SmoothingUtilsTests.java | 6 +++--- .../latin/BinaryDictionaryTests.java | 17 +++++++++-------- .../latin/ContactsContentObserverTest.java | 5 +++-- .../latin/ContactsDictionaryUtilsTest.java | 4 ++-- .../latin/ContactsManagerTest.java | 15 ++++++++------- .../DictionaryFacilitatorLruCacheTests.java | 10 +++++----- .../inputmethod/latin/NgramContextTests.java | 8 ++++---- .../RichInputConnectionAndTextRangeTests.java | 11 ++++++----- .../latin/RichInputMethodSubtypeTests.java | 13 +++++++------ .../latin/SuggestedWordsTests.java | 4 ++-- .../inputmethod/latin/WordComposerTests.java | 5 ++--- .../AccountsChangedReceiverTests.java | 7 ++++--- .../latin/common/InputPointersTests.java | 4 ++-- .../latin/common/ResizableIntArrayTests.java | 8 ++++---- .../latin/common/StringUtilsTests.java | 8 ++++---- .../latin/common/UnicodeSurrogateTests.java | 5 ++--- .../network/BlockingHttpClientTests.java | 11 +++++------ .../HttpUrlConnectionBuilderTests.java | 10 +++++----- .../UserHistoryDictionaryTests.java | 15 ++++++++------- .../AccountsSettingsFragmentTests.java | 7 ++++--- .../settings/SpacingAndPunctuationsTests.java | 11 ++++++----- .../SuggestionStripLayoutHelperTests.java | 4 ++-- .../NullGestureConsumerTests.java | 4 ++-- .../utils/AdditionalSubtypeUtilsTests.java | 14 ++++++++------ .../latin/utils/AsyncResultHolderTests.java | 5 +++-- .../latin/utils/CapsModeUtilsTests.java | 7 ++++--- .../latin/utils/CollectionUtilsTests.java | 10 +++++----- .../latin/utils/DictionaryInfoUtilsTests.java | 11 ++++++----- .../latin/utils/ExecutorUtilsTests.java | 11 ++++++----- .../utils/ImportantNoticeUtilsTests.java | 8 +++++--- .../latin/utils/JsonUtilsTests.java | 10 +++++----- .../utils/LanguageOnSpacebarUtilsTests.java | 16 +++++++++------- .../latin/utils/RecapitalizeStatusTests.java | 8 ++++---- .../latin/utils/ResourceUtilsTests.java | 9 ++++----- .../utils/SpannableStringUtilsTests.java | 11 ++++++----- .../latin/utils/SubtypeLocaleUtilsTests.java | 13 +++++++------ 54 files changed, 238 insertions(+), 218 deletions(-) diff --git a/build.gradle b/build.gradle index 411f8e647..ab631c0ef 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ android { applicationId 'com.android.inputmethod.latin' testApplicationId 'com.android.inputmethod.latin.tests' - testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = false signingConfig signingConfigs.debug diff --git a/tests/Android.bp b/tests/Android.bp index 7a8359723..76681f669 100644 --- a/tests/Android.bp +++ b/tests/Android.bp @@ -26,7 +26,7 @@ android_test { ], static_libs: [ - "android-support-test", + "androidx.test.rules", "mockito-target-minus-junit4", ], libs: [ diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml index 125aa1052..e788e0b7c 100644 --- a/tests/AndroidManifest.xml +++ b/tests/AndroidManifest.xml @@ -28,7 +28,7 @@ - diff --git a/tests/AndroidTest.xml b/tests/AndroidTest.xml index d560cb96e..41334d5a8 100644 --- a/tests/AndroidTest.xml +++ b/tests/AndroidTest.xml @@ -34,7 +34,7 @@