summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java')
-rw-r--r--tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
index 6c81bc65..91cc3f3b 100644
--- a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
+++ b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
@@ -306,8 +306,8 @@ public class PublicApiFunctionalTest extends AbstractPublicApiTest {
public void testRequestHeaders() throws Exception {
enqueueEmptyResponse(HTTP_OK);
- Download download = enqueueRequest(getRequest().setRequestHeader("Header1", "value1")
- .setRequestHeader("Header2", "value2"));
+ Download download = enqueueRequest(getRequest().addRequestHeader("Header1", "value1")
+ .addRequestHeader("Header2", "value2"));
download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL);
List<String> headers = takeRequest().getHeaders();
@@ -316,7 +316,7 @@ public class PublicApiFunctionalTest extends AbstractPublicApiTest {
}
public void testDelete() throws Exception {
- Download download = enqueueRequest(getRequest().setRequestHeader("header", "value"));
+ Download download = enqueueRequest(getRequest().addRequestHeader("header", "value"));
mManager.remove(download.mId);
Cursor cursor = mManager.query(new DownloadManager.Query());
try {