summaryrefslogtreecommitdiffstats
path: root/tests/public_api_access
diff options
context:
space:
mode:
authorSteve Howard <showard@google.com>2010-09-22 15:57:30 -0700
committerSteve Howard <showard@google.com>2010-09-22 18:31:44 -0700
commitebb555c0687061993dd6a22d15f6aab2437ee8c5 (patch)
tree6968836e8e8a549c51af802aeb31b551372a38f2 /tests/public_api_access
parentece96c7475696d8b447bb8523f4ad83c897002ea (diff)
downloadandroid_packages_providers_DownloadProvider-ebb555c0687061993dd6a22d15f6aab2437ee8c5.zip
android_packages_providers_DownloadProvider-ebb555c0687061993dd6a22d15f6aab2437ee8c5.tar.gz
android_packages_providers_DownloadProvider-ebb555c0687061993dd6a22d15f6aab2437ee8c5.tar.bz2
Support multi-valued HTTP headers, handle new API changes
* backend support for multiple values for the same HTTP headers, for corresponding API changes * other minor changes in response to DownloadManager API changes Change-Id: I7c595e94a60ed7afaca6cc3fb4c05aaeeff20c2a
Diffstat (limited to 'tests/public_api_access')
-rw-r--r--tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/PublicApiAccessTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/PublicApiAccessTest.java b/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/PublicApiAccessTest.java
index 3929c59..13bec33 100644
--- a/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/PublicApiAccessTest.java
+++ b/tests/public_api_access/src/com/android/providers/downloads/public_api_access_tests/PublicApiAccessTest.java
@@ -149,8 +149,8 @@ public class PublicApiAccessTest extends AndroidTestCase {
request.setAllowedOverRoaming(false);
request.setTitle("test");
request.setDescription("test");
- request.setMediaType("text/html");
- request.setRequestHeader("X-Some-Header", "value");
+ request.setMimeType("text/html");
+ request.addRequestHeader("X-Some-Header", "value");
mManager.enqueue(request);
}
}