summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2013-01-17 17:26:51 -0800
committerJeff Sharkey <jsharkey@android.com>2013-01-17 18:36:35 -0800
commit12f5dc46aaa8e28cabfbe25d55f0af68f24ab306 (patch)
tree31f741472e00f7c3c6ee1edf09590f92aa6b6778 /tests
parent97862429de71477b5c4488faa911a2256b90089b (diff)
downloadandroid_packages_providers_DownloadProvider-12f5dc46aaa8e28cabfbe25d55f0af68f24ab306.tar.gz
android_packages_providers_DownloadProvider-12f5dc46aaa8e28cabfbe25d55f0af68f24ab306.tar.bz2
android_packages_providers_DownloadProvider-12f5dc46aaa8e28cabfbe25d55f0af68f24ab306.zip
Better handling of retryable errors.
Now the final errors are always thrown, and the outer code decides how to handle them as retries. Also clean up method signatures. Bug: 8022478 Change-Id: I4e7e43be793294ab837370df521e7c381e0bb6c3
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
index 157cce89..09739c0d 100644
--- a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
+++ b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
@@ -398,7 +398,7 @@ public class PublicApiFunctionalTest extends AbstractPublicApiTest {
public void testNoContentLength() throws Exception {
enqueueResponse(buildEmptyResponse(HTTP_OK).removeHeader("Content-length"));
- runSimpleFailureTest(DownloadManager.ERROR_HTTP_DATA_ERROR);
+ runSimpleFailureTest(DownloadManager.ERROR_CANNOT_RESUME);
}
public void testInsufficientSpace() throws Exception {