am 529ad92e: am bda001aa: am ad0830a1: am 639a7fc2: Merge "Propagating IOException from RemoteAndroidTestRunner#run() in PackageManagerHostTestUtils." into froyo

This commit is contained in:
Neal Nguyen
2010-05-06 17:10:22 -07:00
committed by Android Git Automerger

View File

@ -120,7 +120,7 @@ public class PackageManagerHostTestUtils extends Assert {
* @param pkgName Android application package for tests
* @return the {@link CollectingTestRunListener}
*/
private CollectingTestRunListener doRunTests(String pkgName) {
private CollectingTestRunListener doRunTests(String pkgName) throws IOException {
RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(
pkgName, mDevice);
CollectingTestRunListener listener = new CollectingTestRunListener();
@ -138,7 +138,7 @@ public class PackageManagerHostTestUtils extends Assert {
* @param pkgName Android application package for tests
* @return true if every test passed, false otherwise.
*/
public boolean runDeviceTestsDidAllTestsPass(String pkgName) {
public boolean runDeviceTestsDidAllTestsPass(String pkgName) throws IOException {
CollectingTestRunListener listener = doRunTests(pkgName);
return listener.didAllTestsPass();
}