From d6f9b5e72a135365f2358d79b3ea3c9f7cb99c8e Mon Sep 17 00:00:00 2001 From: Steve Howard Date: Wed, 9 Jun 2010 17:50:07 -0700 Subject: First pass at a functional test for the Download Manager. This "Large" test sets up an HTTP server on the device using MockWebServer and then initiates downloads from that server through the download manager. It uses ServiceTestCase to control the construction and execution of the DownloadService, and it uses some logic from ProviderTestCase2 to construct a DownloadProvider and a ContentResolver that uses it. This setup gives us some ability to mock dependencies. This commit includes use of a fake ConnectivityManager to test responses to connectivity changes, and use of some customizations to MockWebServer to test resuming an interrupted download. This test is disabled, though, since it requires a very long sleep. Avoiding that, and achieving certain other things, will require changes to the Download Manager code itself to introduce new seams. I wanted to check this in before I started such changes. Change-Id: Iefb13b3c3cccdc13fabe5cc18703e13244805539 --- tests/AndroidManifest.xml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/AndroidManifest.xml (limited to 'tests/AndroidManifest.xml') diff --git a/tests/AndroidManifest.xml b/tests/AndroidManifest.xml new file mode 100644 index 00000000..4d971db1 --- /dev/null +++ b/tests/AndroidManifest.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + -- cgit v1.2.3