summaryrefslogtreecommitdiff
path: root/legacy-test
AgeCommit message (Collapse)Author
2017-05-15Moved c.a.i.u.Predicate[s] into legacy-test Paul Duffin
These classes are only used by android.test classes that are being removed. As their name suggests they should not be in the Android API at all so it makes sense to remove them. Especially as there is java.lang.function.Predicate available now. It appears as though Predicate was only added in to the API because it was used by a method in the API as the directory in which it and Predicates live was not on the list of classes to explicitly index. Moving it into legacy-test meant that they are now being indexed explicitly which means that Predicates needs to be hidden. Keeps running the tests as part of the existing target. At runtime apps targeted at the API version before these are removed will have the legacy-test library automatically added to their classpath so they should see no effect. Apps that target a later API will have to include those classes from the android.legacy.test.jar which will contain all the android.test classes that depend on it as well. Bug: 30188076 Test: make checkbuild Change-Id: Ia8502ec77ac11f85e078d70b68df214a9435eee7 Merged-In: I6f6f5f16fe93bd80227a450c6254166632fc6813
2017-05-09Statically include android.test.runner classes in legacy-android-test Paul Duffin
In preparation for removing junit and android.test classes from the Android API this change adds the android.test classes that are in the android.test.runner library into legacy-android-test so that they can be statically included into the application. The junit.... classes from android.test.runner can already be statically included from the junit library. Bug: 30188076 Test: make checkbuild Change-Id: Id8d32da9e46f0d9142b60ef28998b40e8d237b32
2017-02-22Fix build failure when using javac toolchain Paul Duffin
The legacy-performance-test-hostdex library was built using the BUILD_HOST_DALVIK_JAVA_LIBRARY macro (which creates a non-static library) but is used with LOCAL_STATIC_JAVA_LIBRARIES which requires a static library. That works with Jack but fails with the javac toolchain. This change switched to build legacy-performance-test-hostdex using the BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY macro. Bug: 30188076 Test: make checkbuild Change-Id: I8d42c669e4ded3417ecdcb7b0251bc6346debd5d
2017-01-17Add legacy-android-test target containing android.test classes Paul Duffin
In preparation for removing junit classes from the Android API the legacy-test target will be removed from the TARGET_DEFAULT_JAVA_LIBRARIES. This change adds a legacy-android-test target, containing only the android.test classes, for use by any targets that depend on those classes. Bug: 30188076 Test: make checkbuild Change-Id: Ifc0a9a23d4ac3c78428bb9dde38e547e6978ba7e
2016-12-14Copy core-junit files into legacy-test. Paul Duffin
The legacy-test directory contains part of the Android API and so must maintain backwards compatibility. The junit classes that are in the API are copied here to ensure that they do not change when external/junit is upgraded. Bug: 30188076 Test: make checkbuild and checked legacy-test contents Change-Id: I6c263afc16c06abfd027334be51a41422239a189
2016-12-08Move android.test classes from core/java to legacy-test/src Paul Duffin
(cherry picked from 2395179afb2ea957a9ba66404021c14160361611) Bug: 30188076 Test: make checkbuild Merged-In: Ifa291909fcf47da788627b496bd72f54efd78ed7 Change-Id: Ie20dceb9f89df245ed6da5fc2fb06185bd7b104b
2016-12-07Add legacy-performance-test-hostdex target Paul Duffin
This is needed for some internal targets that currently depend directly on the source files and which break when the source file is moved. Bug: 30188076 Test: make legacy-performance-test-hostdex Change-Id: I653325605204c1f272bd5f669e2297eedeaf7d61
2016-11-29Add legacy-test as replacement for core-junit Paul Duffin
Statically includes core-junit-static into legacy-test target so that legacy-test can be used in place of core-test. Once that switch over has been done then android.test classes that are being removed from the public API can be safely moved into here. Bug: 30188076 Test: make legacy-test and check contents of generated legacy-test artifacts Change-Id: I75488303067c4ac34c46279bfce9a51273adcc34