Add 2 more Androidx test libraries
Need third party library net_sf_kxml_kxml2 for androidx_test_runner_java's dependency which is only used for test code.
Sample test from Robolectric:
https://cs.chromium.org/chromium/src/third_party/robolectric/robolectric/integration_tests/ctesque/src/androidTest/java/android/app/ActivityInstrTest.java
In this test, it shows that androidx.test.rule.ActivityTestRule and androidx.test.runner.AndroidJUnit4 are needed.
At least we need androidx.test.rule.ActivityTestRule instead of android.support.test.rule.ActivityTestRule for this feature so that androidx_test_rules_java needed and androidx_test_runner_java is a dependency.
New AndroidJUnit4 still needed but we can use androidx.test.ext.junit.runners.AndroidJunit4 I guess since new AndroidJunit4 can load RobolectricTestRunner as runner https://github.com/android/android-test/blob/master/ext/junit/java/androidx/test/ext/junit/runners/AndroidJUnit4.java#L61
Robolectric 4.0 release note:
http://robolectric.org/blog/2018/10/25/robolectric-4-0/
Bug: 938716
Change-Id: I42629efcd6ab688bec7c81cdf25e17251d507033
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1493204
Commit-Queue: Nico Weber <thakis@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Reviewed-by: Conley Owens <cco3@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Cr-Commit-Position: refs/heads/master@{#642722}
diff --git a/DEPS b/DEPS
index 69e1848..6bc11df 100644
--- a/DEPS
+++ b/DEPS
@@ -1485,6 +1485,28 @@
'dep_type': 'cipd',
},
+ 'src/third_party/android_deps/libs/androidx_test_rules': {
+ 'packages': [
+ {
+ 'package': 'chromium/third_party/android_deps/libs/androidx_test_rules',
+ 'version': 'version:1.1.0-cr0',
+ },
+ ],
+ 'condition': 'checkout_android',
+ 'dep_type': 'cipd',
+ },
+
+ 'src/third_party/android_deps/libs/androidx_test_runner': {
+ 'packages': [
+ {
+ 'package': 'chromium/third_party/android_deps/libs/androidx_test_runner',
+ 'version': 'version:1.1.0-cr0',
+ },
+ ],
+ 'condition': 'checkout_android',
+ 'dep_type': 'cipd',
+ },
+
'src/third_party/android_deps/libs/com_android_support_animated_vector_drawable': {
'packages': [
{
@@ -2123,6 +2145,17 @@
'dep_type': 'cipd',
},
+ 'src/third_party/android_deps/libs/net_sf_kxml_kxml2': {
+ 'packages': [
+ {
+ 'package': 'chromium/third_party/android_deps/libs/net_sf_kxml_kxml2',
+ 'version': 'version:2.3.0-cr0',
+ },
+ ],
+ 'condition': 'checkout_android',
+ 'dep_type': 'cipd',
+ },
+
'src/third_party/android_deps/libs/org_checkerframework_checker_compat_qual': {
'packages': [
{