aaaba76810c0b5b61c609a929536b64ac7e368fc |
|
20-Jun-2017 |
Paul Duffin <paulduffin@google.com> |
Clean up ClassPathPackageInfoSource Part of the work of removing JUnit and dependent android.test classes from the Android API involves providing a static library that developers can include in their test applications to ease migration. That library will be built directly from the source (as opposed to android.jar which is built from stubs) and so developers will be able to see classes and methods that are not present in the stubs. This change is one of a number of similar changes that cleanup the existing non-API code in order to minimize the additional methods and classes exposed externally. The basic approach is to remove unused classes and methods, use least visible access modifier possible and generally minimize the amount of publicly visible code. PackageInfoSources only provided a static field and accessor method so they were moved into ClassPathPackageInfoSource and PackageInfoSources was removed. ClassPathPackageInfo was only used in ClassPathPackageInfoSource and in TestGrouping. In the latter it was simply used as an intermediate value between ClassPathPackageInfoSource.getPackage(String packageName) and ClassPathPackageInfo.getTopLevelClassesRecursive(String packageName). Moving that method into ClassPathPackageInfoSource allowed the ClassPathPackageInfo to become an inner class of ClassPathPackageInfoSource. As it is an inner class it no longer needed an explicit reference to the containing ClassPathPackageInfoSource. Bug: 30188076 Test: make checkbuild and ran FrameworkTestRunnerTests Change-Id: Idb0b6a585030805b9cff8562abb93b7e5920c53a
/frameworks/base/test-runner/src/android/test/suitebuilder/TestGrouping.java
|
e2e557976f1d68bf4d6a147ec484e5455f15eeef |
|
20-Jun-2017 |
Paul Duffin <paulduffin@google.com> |
Cleanup a.t.TestGrouping TestGrouping is not part of the API but is used by classes that are and so will need to be included in the static library we ship as part of the SDK. As that library will be built directly from the source (as opposed to android.jar which is built from stubs) developers will be able to see classes and methods that are hidden and so not present in the stubs. This change makes TestGrouping and its members as inaccessible as possible. Unused methods and fields were removed and the TestGrouping class was simplified by passing the ClassLoader into the constructor, initializing the classLoader, making the classLoader field final, and removing the setClassLoader(ClassLoader) method. Bug: 30188076 Test: make checkbuild Change-Id: Ie0545b1a61b74cdbc78667417f360b5197e2e128
/frameworks/base/test-runner/src/android/test/suitebuilder/TestGrouping.java
|
bb469fe3da7e6d17e851a95026a9eea905c52daa |
|
24-Apr-2010 |
Brett Chabot <brettchabot@android.com> |
Add test runner log when test case class is not loaded. The test runner will only load TestCase classes that have a public constructor with either no params or a single String parameter. This is fairly subtle behavior and can be difficult to catch. This change adds a log message when a TestCase class is not loaded, and adds some associated unit tests. Change-Id: I6fc63e4179c949620f5773e0ae134f99905a6fb2
/frameworks/base/test-runner/src/android/test/suitebuilder/TestGrouping.java
|
e70f61b1160e953e5e4d18d30a463fa9ba821779 |
|
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Retry test-runner tests move. This time change the frameworks makefile so it only includes test-runner/src in the public API.
/frameworks/base/test-runner/src/android/test/suitebuilder/TestGrouping.java
|
c1ca8c51c616d1517b18bf24feaa9f8f1430c835 |
|
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Revert "Move framework test-runner unit tests to be closer to their source." This reverts commit 12093976a4842a795491cfd2b1d3b71e18503f2d.
/frameworks/base/test-runner/src/android/test/suitebuilder/TestGrouping.java
|
12093976a4842a795491cfd2b1d3b71e18503f2d |
|
19-Feb-2010 |
Brett Chabot <brettchabot@android.com> |
Move framework test-runner unit tests to be closer to their source. Move the test-runner source into a separate src folder to accommodate the test move.
/frameworks/base/test-runner/src/android/test/suitebuilder/TestGrouping.java
|