diff options
author | David Hu <hud@google.com> | 2011-09-19 12:11:11 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-09-19 12:11:11 -0700 |
commit | 97567340a4194070ffefe6249e3ae5ba4e458e70 (patch) | |
tree | 49cf3cce462fbb5be25ba124cee15ac79b0341b7 /test-runner/src | |
parent | e0d558ac92cd9e550b3d08bf09d9bb12c2a506c6 (diff) | |
parent | cbc584d7ebe332f78bf8012d21265ccb482c7cfc (diff) | |
download | frameworks_base-97567340a4194070ffefe6249e3ae5ba4e458e70.zip frameworks_base-97567340a4194070ffefe6249e3ae5ba4e458e70.tar.gz frameworks_base-97567340a4194070ffefe6249e3ae5ba4e458e70.tar.bz2 |
Merge "Return the bundle object"
Diffstat (limited to 'test-runner/src')
-rw-r--r-- | test-runner/src/android/test/InstrumentationTestRunner.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test-runner/src/android/test/InstrumentationTestRunner.java b/test-runner/src/android/test/InstrumentationTestRunner.java index c3d09ff..70cf89e 100644 --- a/test-runner/src/android/test/InstrumentationTestRunner.java +++ b/test-runner/src/android/test/InstrumentationTestRunner.java @@ -279,6 +279,7 @@ public class InstrumentationTestRunner extends Instrumentation implements TestSu private static final String LOG_TAG = "InstrumentationTestRunner"; private final Bundle mResults = new Bundle(); + private Bundle mArguments; private AndroidTestRunner mTestRunner; private boolean mDebug; private boolean mJustCount; @@ -292,6 +293,7 @@ public class InstrumentationTestRunner extends Instrumentation implements TestSu @Override public void onCreate(Bundle arguments) { super.onCreate(arguments); + mArguments = arguments; // Apk paths used to search for test classes when using TestSuiteBuilders. String[] apkPaths = @@ -379,6 +381,16 @@ public class InstrumentationTestRunner extends Instrumentation implements TestSu start(); } + /** + * Get the Bundle object that contains the arguments + * + * @return the Bundle object + * @hide + */ + public Bundle getBundle(){ + return mArguments; + } + List<Predicate<TestMethod>> getBuilderRequirements() { return new ArrayList<Predicate<TestMethod>>(); } |