summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVasu Nori <vnori@google.com>2010-12-16 18:31:23 -0800
committerVasu Nori <vnori@google.com>2010-12-23 13:28:32 -0800
commit5218d33d57990c3e3549c58bd3f0ac244dfc3d59 (patch)
tree4c7f740b3eadf7ed34515b47c36827251aac2e34 /tests
parent6bf8b8d183ef3fa118ad9fb8eb35c2ee101e46a1 (diff)
downloadandroid_packages_providers_DownloadProvider-5218d33d57990c3e3549c58bd3f0ac244dfc3d59.zip
android_packages_providers_DownloadProvider-5218d33d57990c3e3549c58bd3f0ac244dfc3d59.tar.gz
android_packages_providers_DownloadProvider-5218d33d57990c3e3549c58bd3f0ac244dfc3d59.tar.bz2
bug:3286430 set quota on downloads data dir
make sure the doanloads data dir size is limited by some quote - 100MB default and 200MB for SR. bug:3286430 tests are in Change-Id: I688f7e058511089bec7fa21e972e23780604d98a Change-Id: Iba7fab9fa91ea018f35e1c3ef5ec0e6b03cba650
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java2
-rw-r--r--tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java5
2 files changed, 1 insertions, 6 deletions
diff --git a/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java b/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java
index d7f4787..c3ac890 100644
--- a/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java
+++ b/tests/src/com/android/providers/downloads/DownloadManagerFunctionalTest.java
@@ -65,7 +65,7 @@ public class DownloadManagerFunctionalTest extends AbstractDownloadManagerFuncti
Integer.toString(Downloads.Impl.DESTINATION_CACHE_PARTITION));
runUntilStatus(downloadUri, Downloads.Impl.STATUS_SUCCESS);
assertEquals(FILE_CONTENT, getDownloadContents(downloadUri));
- assertStartsWith(Helpers.getDownloadsDataDirectory(getContext()).getAbsolutePath(),
+ assertStartsWith(getContext().getCacheDir().getAbsolutePath(),
getDownloadFilename(downloadUri));
}
diff --git a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
index 96fbaab..64c1953 100644
--- a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
+++ b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java
@@ -25,7 +25,6 @@ import android.net.Uri;
import android.os.Environment;
import android.provider.Downloads;
import android.test.suitebuilder.annotation.LargeTest;
-import android.test.suitebuilder.annotation.Suppress;
import tests.http.MockResponse;
import tests.http.RecordedRequest;
@@ -386,10 +385,6 @@ public class PublicApiFunctionalTest extends AbstractPublicApiTest {
runSimpleFailureTest(DownloadManager.ERROR_HTTP_DATA_ERROR);
}
- /**
- * un-suppress this test once the bug 3286430 is fixed
- */
- @Suppress
public void testInsufficientSpace() throws Exception {
// this would be better done by stubbing the system API to check available space, but in the
// meantime, just use an absurdly large header value