summaryrefslogtreecommitdiffstats
path: root/tests/src/tests/http
diff options
context:
space:
mode:
authorSteve Howard <showard@google.com>2010-07-27 16:28:40 -0700
committerSteve Howard <showard@google.com>2010-07-27 18:47:14 -0700
commitdea0a5f8e5804d3aba40eaa7de763dd88058384e (patch)
tree2b65161a6e2824c5ce78a467e4f377e9e258a161 /tests/src/tests/http
parentf85aa9ef563f2fbb3c0db6c980121122a14d953f (diff)
downloadandroid_packages_providers_DownloadProvider-dea0a5f8e5804d3aba40eaa7de763dd88058384e.tar.gz
android_packages_providers_DownloadProvider-dea0a5f8e5804d3aba40eaa7de763dd88058384e.tar.bz2
android_packages_providers_DownloadProvider-dea0a5f8e5804d3aba40eaa7de763dd88058384e.zip
Add test for many interruptions to a single download.
Adding a new test case for downloads that undergo many interruptions (as may happen with a very large download that takes many hours). Includes some refactoring in the test suite. Early on, this test exposed a race condition in which the download manager got some I/O exception while reading from the MockWebServer. I went in and improved/refactored much of the error logging code in DownloadThread to try and track this down. Unfortunately, once I finished, the race condition no longer seems to be reproducible, even with hundreds of runs of the test case. So I've given up on it for now. In any event, error logging is better and much duplicate code has been eliminated.
Diffstat (limited to 'tests/src/tests/http')
0 files changed, 0 insertions, 0 deletions