am 639a7fc2: Merge "Propagating IOException from RemoteAndroidTestRunner#run() in PackageManagerHostTestUtils." into froyo
Merge commit '639a7fc2c2d0bda12fef0c822bb2e3c002d5c5b4' into froyo-plus-aosp * commit '639a7fc2c2d0bda12fef0c822bb2e3c002d5c5b4': Propagating IOException from RemoteAndroidTestRunner#run() in PackageManagerHostTestUtils.
This commit is contained in:
@@ -120,7 +120,7 @@ public class PackageManagerHostTestUtils extends Assert {
|
|||||||
* @param pkgName Android application package for tests
|
* @param pkgName Android application package for tests
|
||||||
* @return the {@link CollectingTestRunListener}
|
* @return the {@link CollectingTestRunListener}
|
||||||
*/
|
*/
|
||||||
private CollectingTestRunListener doRunTests(String pkgName) {
|
private CollectingTestRunListener doRunTests(String pkgName) throws IOException {
|
||||||
RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(
|
RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(
|
||||||
pkgName, mDevice);
|
pkgName, mDevice);
|
||||||
CollectingTestRunListener listener = new CollectingTestRunListener();
|
CollectingTestRunListener listener = new CollectingTestRunListener();
|
||||||
@@ -134,7 +134,7 @@ public class PackageManagerHostTestUtils extends Assert {
|
|||||||
* @param pkgName Android application package for tests
|
* @param pkgName Android application package for tests
|
||||||
* @return true if every test passed, false otherwise.
|
* @return true if every test passed, false otherwise.
|
||||||
*/
|
*/
|
||||||
public boolean runDeviceTestsDidAllTestsPass(String pkgName) {
|
public boolean runDeviceTestsDidAllTestsPass(String pkgName) throws IOException {
|
||||||
CollectingTestRunListener listener = doRunTests(pkgName);
|
CollectingTestRunListener listener = doRunTests(pkgName);
|
||||||
return listener.didAllTestsPass();
|
return listener.didAllTestsPass();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user