diff options
author | 2023-04-11 15:24:36 +0000 | |
---|---|---|
committer | 2023-04-11 15:24:36 +0000 | |
commit | 88bfacfce22281f038610507a29f32edc8bb39e7 (patch) | |
tree | 2ed792b9873499f0d7beef21c04db2e4f0f008ec | |
parent | ae87dfba519b445b391eccb091c8fe3bcbe60261 (diff) |
Update uiautomator references in frameworks/base/packages/Shell/tests
* Remove unused dependencies.
* Replace "ub-uiautomator" (v2.2.0) with
"androidx.test.uiautomator_uiautomator" (v2.3.0).
Bug: 235842600
Test: presubmit
Change-Id: Ib4b00278de42da7cc58b4fc024634109de6d87de
-rw-r--r-- | packages/Shell/tests/Android.bp | 2 | ||||
-rw-r--r-- | packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java | 8 | ||||
-rw-r--r-- | packages/Shell/tests/src/com/android/shell/UiBot.java | 15 |
3 files changed, 13 insertions, 12 deletions
diff --git a/packages/Shell/tests/Android.bp b/packages/Shell/tests/Android.bp index 70e8c10a961d..0dc331478997 100644 --- a/packages/Shell/tests/Android.bp +++ b/packages/Shell/tests/Android.bp @@ -18,7 +18,7 @@ android_test { static_libs: [ "androidx.test.rules", "mockito-target-minus-junit4", - "ub-uiautomator", + "androidx.test.uiautomator_uiautomator", "junit", ], platform_apis: true, diff --git a/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java b/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java index a719d77604b1..4579168d2784 100644 --- a/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java +++ b/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java @@ -59,10 +59,6 @@ import android.os.ParcelFileDescriptor; import android.os.SystemClock; import android.os.SystemProperties; import android.service.notification.StatusBarNotification; -import android.support.test.uiautomator.UiDevice; -import android.support.test.uiautomator.UiObject; -import android.support.test.uiautomator.UiObject2; -import android.support.test.uiautomator.UiObjectNotFoundException; import android.text.TextUtils; import android.text.format.DateUtils; import android.util.Log; @@ -71,6 +67,10 @@ import androidx.test.InstrumentationRegistry; import androidx.test.filters.LargeTest; import androidx.test.rule.ServiceTestRule; import androidx.test.runner.AndroidJUnit4; +import androidx.test.uiautomator.UiDevice; +import androidx.test.uiautomator.UiObject; +import androidx.test.uiautomator.UiObject2; +import androidx.test.uiautomator.UiObjectNotFoundException; import com.android.shell.ActionSendMultipleConsumerActivity.CustomActionSendMultipleListener; diff --git a/packages/Shell/tests/src/com/android/shell/UiBot.java b/packages/Shell/tests/src/com/android/shell/UiBot.java index 53b124ff9c4c..ce9f70d8b977 100644 --- a/packages/Shell/tests/src/com/android/shell/UiBot.java +++ b/packages/Shell/tests/src/com/android/shell/UiBot.java @@ -19,16 +19,17 @@ package com.android.shell; import android.app.Instrumentation; import android.app.StatusBarManager; import android.os.SystemClock; -import android.support.test.uiautomator.By; -import android.support.test.uiautomator.UiDevice; -import android.support.test.uiautomator.UiObject; -import android.support.test.uiautomator.UiObject2; -import android.support.test.uiautomator.UiObjectNotFoundException; -import android.support.test.uiautomator.UiSelector; -import android.support.test.uiautomator.Until; import android.text.format.DateUtils; import android.util.Log; +import androidx.test.uiautomator.By; +import androidx.test.uiautomator.UiDevice; +import androidx.test.uiautomator.UiObject; +import androidx.test.uiautomator.UiObject2; +import androidx.test.uiautomator.UiObjectNotFoundException; +import androidx.test.uiautomator.UiSelector; +import androidx.test.uiautomator.Until; + import static junit.framework.Assert.assertFalse; import static junit.framework.Assert.assertNotNull; import static junit.framework.Assert.assertTrue; |