summaryrefslogtreecommitdiff
path: root/test-runner/tests
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2017-06-20 14:53:48 +0100
committerPaul Duffin <paulduffin@google.com>2017-06-20 15:29:57 +0100
commite2e557976f1d68bf4d6a147ec484e5455f15eeef (patch)
tree22b1af76216a1465201e9a1b91aa9f1e13c4ee49 /test-runner/tests
parent48bc4c1f420d8f60c4d83d0ded4be0f37a37dd22 (diff)
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
Diffstat (limited to 'test-runner/tests')
-rw-r--r--test-runner/tests/src/android/test/suitebuilder/TestGroupingTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-runner/tests/src/android/test/suitebuilder/TestGroupingTest.java b/test-runner/tests/src/android/test/suitebuilder/TestGroupingTest.java
index f4477d1c780e..972bfb49e75f 100644
--- a/test-runner/tests/src/android/test/suitebuilder/TestGroupingTest.java
+++ b/test-runner/tests/src/android/test/suitebuilder/TestGroupingTest.java
@@ -30,7 +30,7 @@ public class TestGroupingTest extends TestCase {
@Override
protected void setUp() throws Exception {
super.setUp();
- mGrouping = new TestGrouping(TestGrouping.SORT_BY_SIMPLE_NAME);
+ mGrouping = new TestGrouping(TestGrouping.SORT_BY_SIMPLE_NAME, getClass().getClassLoader());
}
/**