summaryrefslogtreecommitdiff
path: root/test-runner/src/android/test/AndroidTestRunner.java
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2017-06-15 14:50:08 +0100
committerPaul Duffin <paulduffin@google.com>2017-06-20 10:26:29 +0100
commit5361c48199edb15a4de2e74cd6ae4df28f598b68 (patch)
tree3546b7b961a5c48d458fef100582d2580bdf5978 /test-runner/src/android/test/AndroidTestRunner.java
parentdcfaccd3cc65b48eeb1c3730f2be09670550658f (diff)
Remove android.test dependencies on a.o.PerformanceCollector
The a.t.TimedTest annotation was removed because it was not in the API and was only used by the code that has been removed. The a.t.PerformanceCollectorTestCase was removed because it was not in the API and its only purpose was to allow the AndroidTestRunner to supply a PerformanceCollector.PerformanceResultsWriter to a test. Bug: 62652137 Test: make checkbuild Change-Id: Ie90a7004ade1448cb6bc7e029f6ba5620db29bfd
Diffstat (limited to 'test-runner/src/android/test/AndroidTestRunner.java')
-rw-r--r--test-runner/src/android/test/AndroidTestRunner.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/test-runner/src/android/test/AndroidTestRunner.java b/test-runner/src/android/test/AndroidTestRunner.java
index 7313a2880ea2..f898516a001b 100644
--- a/test-runner/src/android/test/AndroidTestRunner.java
+++ b/test-runner/src/android/test/AndroidTestRunner.java
@@ -18,7 +18,6 @@ package android.test;
import android.app.Instrumentation;
import android.content.Context;
-import android.os.PerformanceCollector.PerformanceResultsWriter;
import java.util.ArrayList;
import junit.framework.Test;
@@ -49,7 +48,6 @@ public class AndroidTestRunner extends BaseTestRunner {
private List<TestListener> mTestListeners = new ArrayList<>();
private Instrumentation mInstrumentation;
- private PerformanceResultsWriter mPerfWriter;
@SuppressWarnings("unchecked")
public void setTestClassName(String testClassName, String testMethodName) {
@@ -194,7 +192,6 @@ public class AndroidTestRunner extends BaseTestRunner {
for (TestCase testCase : mTestCases) {
setContextIfAndroidTestCase(testCase, mContext, testContext);
setInstrumentationIfInstrumentationTestCase(testCase, mInstrumentation);
- setPerformanceWriterIfPerformanceCollectorTestCase(testCase, mPerfWriter);
testCase.run(mTestResult);
}
}
@@ -217,13 +214,6 @@ public class AndroidTestRunner extends BaseTestRunner {
}
}
- private void setPerformanceWriterIfPerformanceCollectorTestCase(
- Test test, PerformanceResultsWriter writer) {
- if (PerformanceCollectorTestCase.class.isAssignableFrom(test.getClass())) {
- ((PerformanceCollectorTestCase) test).setPerformanceResultsWriter(writer);
- }
- }
-
public void setInstrumentation(Instrumentation instrumentation) {
mInstrumentation = instrumentation;
}
@@ -237,13 +227,6 @@ public class AndroidTestRunner extends BaseTestRunner {
setInstrumentation(instrumentation);
}
- /**
- * {@hide} Pending approval for public API.
- */
- public void setPerformanceResultsWriter(PerformanceResultsWriter writer) {
- mPerfWriter = writer;
- }
-
@Override
protected Class loadSuiteClass(String suiteClassName) throws ClassNotFoundException {
return mContext.getClassLoader().loadClass(suiteClassName);