summaryrefslogtreecommitdiff
path: root/test-runner
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-12-06 21:12:23 -0700
committerJeff Sharkey <jsharkey@android.com>2017-12-07 00:22:25 -0700
commit2337aec921d051da0d6b506e5fbb564ea2e49911 (patch)
tree45312f63da4f26b64dc1e432fa31d74f6745c93e /test-runner
parentbc4f48b21d4f78a81a78a120a59e523369e41e7b (diff)
Deeper sanity checking of emitted types.
When emitting a method or field, verify that we're able to reference all mentioned types. This ensures that we don't accidentally reference undefined classes/interfaces. Test: manual inspection of API files Bug: 69791141 Change-Id: I84e0c87fe83daa118661f61dbdf17b58ea5282d4 Merged-In: I84e0c87fe83daa118661f61dbdf17b58ea5282d4
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/api/android-test-runner-current.txt2
-rw-r--r--test-runner/src/android/test/suitebuilder/TestSuiteBuilder.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/test-runner/api/android-test-runner-current.txt b/test-runner/api/android-test-runner-current.txt
index 905cfe701ab6..1170eb53ab7f 100644
--- a/test-runner/api/android-test-runner-current.txt
+++ b/test-runner/api/android-test-runner-current.txt
@@ -271,8 +271,6 @@ package android.test.suitebuilder {
public deprecated class TestSuiteBuilder {
ctor public TestSuiteBuilder(java.lang.Class);
ctor public TestSuiteBuilder(java.lang.String, java.lang.ClassLoader);
- method public android.test.suitebuilder.TestSuiteBuilder addRequirements(java.util.List<com.android.internal.util.Predicate<android.test.suitebuilder.TestMethod>>);
- method public final android.test.suitebuilder.TestSuiteBuilder addRequirements(com.android.internal.util.Predicate<android.test.suitebuilder.TestMethod>...);
method public final junit.framework.TestSuite build();
method public android.test.suitebuilder.TestSuiteBuilder excludePackages(java.lang.String...);
method protected java.lang.String getSuiteName();
diff --git a/test-runner/src/android/test/suitebuilder/TestSuiteBuilder.java b/test-runner/src/android/test/suitebuilder/TestSuiteBuilder.java
index 6158e0cf14f4..2857696ef2ff 100644
--- a/test-runner/src/android/test/suitebuilder/TestSuiteBuilder.java
+++ b/test-runner/src/android/test/suitebuilder/TestSuiteBuilder.java
@@ -119,6 +119,7 @@ public class TestSuiteBuilder {
*
* @param predicates Predicates to add to the list of requirements.
* @return The builder for method chaining.
+ * @hide
*/
public TestSuiteBuilder addRequirements(List<Predicate<TestMethod>> predicates) {
this.predicates.addAll(predicates);
@@ -156,7 +157,7 @@ public class TestSuiteBuilder {
/**
* Override the default name for the suite being built. This should generally be called if you
- * call {@link #addRequirements(com.android.internal.util.Predicate[])} to make it clear which
+ * call {@code addRequirements(com.android.internal.util.Predicate[])} to make it clear which
* tests will be included. The name you specify is automatically prefixed with the package
* containing the tests to be run. If more than one package is specified, the first is used.
*
@@ -215,6 +216,7 @@ public class TestSuiteBuilder {
*
* @param predicates Predicates to add to the list of requirements.
* @return The builder for method chaining.
+ * @hide
*/
public final TestSuiteBuilder addRequirements(Predicate<TestMethod>... predicates) {
ArrayList<Predicate<TestMethod>> list = new ArrayList<Predicate<TestMethod>>();