summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorSteve Howard <showard@google.com>2010-06-22 18:20:55 -0700
committerSteve Howard <showard@google.com>2010-07-01 11:35:26 -0700
commit23357198c440e6872d3aef3e608295db7f8273bc (patch)
tree16391d655af983b751b41af5267e8053009a1f2c /Android.mk
parentb0aada69b9e6258bb9a1a7c1b783d0361ef3c6f2 (diff)
downloadandroid_packages_providers_DownloadProvider-23357198c440e6872d3aef3e608295db7f8273bc.tar.gz
android_packages_providers_DownloadProvider-23357198c440e6872d3aef3e608295db7f8273bc.tar.bz2
android_packages_providers_DownloadProvider-23357198c440e6872d3aef3e608295db7f8273bc.zip
Stub out the system clock in the download manager, add tests
Introduce SystemFacade, an interface that allows us to stub out the system clock for testing the download manager. This allows us to test retrying a failed download without having the test wait 60 seconds. This interface can include other dependencies in the future as well. I've also used this to add tests for 503 (retry-after) and 301 (redirect), and I've added a test for download to the cache partition. Other changes: * made MockWebServer capable of checking + rethrowing exceptions from child threads * refactoring + cleanup of DownloadManagerFunctionalTest
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 0e740a66..c7225375 100644
--- a/Android.mk
+++ b/Android.mk
@@ -8,6 +8,7 @@ LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := DownloadProvider
LOCAL_CERTIFICATE := media
+LOCAL_STATIC_JAVA_LIBRARIES := guava
include $(BUILD_PACKAGE)