summaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/providers/downloads/DownloadProviderFunctionalTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Tests for max retries/redirects, ETag switches.Jeff Sharkey2013-01-291-0/+1
| | | | | | | | | | Verify that servers responding with many retries or redirects result in failed download, instead of spinning out of control. Test to verify that changed ETag results in download failing. Also fix handling of HTTP 301 to update Uri in database. Change-Id: Iff2948d79961a245b7900117d107edaa356618c9
* Clean up DownloadManager threading tests.Jeff Sharkey2013-01-081-13/+18
| | | | | | | | | | | Change runUntilStatus() methods to polling with timeout instead of requiring internal knowledge about threading. Fix notification tests, and move opening of InputStream until after handling headers to avoid FNFE. Always reset facade to defaults before each test. Change-Id: I6b2d6cfc4e685d2090c1133b1b2e89ae12760f8b
* Show remaining time in download notifications.Jeff Sharkey2012-11-141-1/+1
| | | | | | | | | | Calculate speed of in-progress downloads and estimate time remaining until completion. Uses a moving average that is weighted 1:1 with the most recent 500ms sample. Funnels timing data to notifications through DownloadHandler. Bug: 6777872 Change-Id: I9155f2979aa330bd1172f63bbfca1d053815cee5
* Migrate to shared MockWebServer.Jeff Sharkey2012-03-291-0/+167
Bug: 4726601 Change-Id: Ibe537bd5c2a092dbf974360cd454751881f7f4ea