Make LaunchPerformanceBase and UnitTestSuiteBuilder as APIs
Those two classes are used by many tests using android.test.runner. Making them as public APIs so that those tests can depend on the public stub of android.test.runner and stop depending on its implementation library. Bug: 157007292 Test: m Change-Id: I33b458f34ffd4c73430f538a85aac308baa6e010
This commit is contained in:
@@ -100,6 +100,13 @@ package android.test {
|
||||
method @Deprecated public java.util.List<android.content.Intent> getAndClearBroadcastIntents();
|
||||
}
|
||||
|
||||
@Deprecated public class LaunchPerformanceBase extends android.app.Instrumentation {
|
||||
ctor @Deprecated public LaunchPerformanceBase();
|
||||
method @Deprecated protected void LaunchApp();
|
||||
field @Deprecated protected android.content.Intent mIntent;
|
||||
field @Deprecated protected android.os.Bundle mResults;
|
||||
}
|
||||
|
||||
public class LoaderTestCase extends android.test.AndroidTestCase {
|
||||
ctor public LoaderTestCase();
|
||||
method public <T> T getLoaderResultSynchronously(android.content.Loader<T>);
|
||||
@@ -285,6 +292,11 @@ package android.test.suitebuilder {
|
||||
method @Deprecated public void testSuiteConstructionFailed();
|
||||
}
|
||||
|
||||
@Deprecated public class UnitTestSuiteBuilder extends android.test.suitebuilder.TestSuiteBuilder {
|
||||
ctor @Deprecated public UnitTestSuiteBuilder(Class);
|
||||
ctor @Deprecated public UnitTestSuiteBuilder(String, ClassLoader);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
package junit.runner {
|
||||
|
||||
@@ -23,12 +23,11 @@ import android.os.Bundle;
|
||||
|
||||
/**
|
||||
* Base class for all launch performance Instrumentation classes.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@Deprecated
|
||||
public class LaunchPerformanceBase extends Instrumentation {
|
||||
|
||||
/** @hide */
|
||||
public static final String LOG_TAG = "Launch Performance";
|
||||
|
||||
protected Bundle mResults;
|
||||
@@ -43,8 +42,6 @@ public class LaunchPerformanceBase extends Instrumentation {
|
||||
|
||||
/**
|
||||
* Launches intent, and waits for idle before returning.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
protected void LaunchApp() {
|
||||
startActivitySync(mIntent);
|
||||
|
||||
@@ -19,8 +19,9 @@ package android.test.suitebuilder;
|
||||
/**
|
||||
* A suite builder that finds unit tests.
|
||||
*
|
||||
* {@hide} Not needed for 1.0 SDK.
|
||||
* @deprecated android.test.runner is obsolete
|
||||
*/
|
||||
@Deprecated
|
||||
public class UnitTestSuiteBuilder extends TestSuiteBuilder {
|
||||
|
||||
public UnitTestSuiteBuilder(Class clazz) {
|
||||
|
||||
Reference in New Issue
Block a user