History log of /packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
323f5ae0cafdc72f61defefaa5ba938f1b4d0dda 03-Apr-2013 Jeff Sharkey <jsharkey@android.com> Follow MockWebServer API changes.

Change-Id: Icaba016bc6e098745e56a3b6367a8a6af0151158
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
1b5c0091270cdc04054c9a2af33ba4f94d652cff 21-Mar-2013 Jeff Sharkey <jsharkey@android.com> Start using MockStreamResponse.

Change-Id: Ida4a0a85883ccd6763b07e958ddc6ecf7eedf790
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
925976230936a5177365dc24b50da8607a9af8d4 12-Feb-2013 Jeff Sharkey <jsharkey@android.com> Redesign of DownloadManager update loop.

Previously, the service lifecycle was managed through a large for()
loop which was extremely tricky to reason about. This resulted in
several race conditions that could leave the service running
indefinitely, or terminate it early before tasks had finished.

This change redesigns the update loop to be event driven based on
database updates, and to collapse mutiple pending update passes. It
is much easier to reason about service termination conditions, and
it correctly uses startId to handle races during command delivery.

Also moves scanner into isolated class, and switches to using public
API instead of binding to private interface.

Bug: 7638470, 7455406, 7162341
Change-Id: I380e77f5432223b2acb4e819e37f29f98ee4782b
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
70c0e1eff5ff7cd5051738f76cecd6cb87353a43 01-Feb-2013 Jeff Sharkey <jsharkey@android.com> Migrate to using Mockito directly.

Change-Id: Ice24d5c62bbcbcfd3d7374eac3a20580f7f31f36
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
58eee87b70862a7ced85eabc3c225fad24664065 29-Jan-2013 Jeff Sharkey <jsharkey@android.com> Tests for max retries/redirects, ETag switches.

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
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
8ac10e0e0667a4fe35191deebb5fa9786bf4226c 04-Jan-2013 Jeff Sharkey <jsharkey@android.com> Clean up DownloadManager threading tests.

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
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
36612d27b67ff2e79ffff8eb12d95d2058abde02 25-Jul-2012 Jeff Sharkey <jsharkey@android.com> Move notification tests to LittleMock.

Directly mock NotificationManager instead of using SystemFacade.

Change-Id: If932d26e23816e8674469c275a828701cce5fc2d
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java
ae6856b0fca5215f45619dd031a7e7beae7bd8cc 29-Mar-2012 Jeff Sharkey <jsharkey@android.com> Migrate to shared MockWebServer.

Bug: 4726601
Change-Id: Ibe537bd5c2a092dbf974360cd454751881f7f4ea
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/AbstractDownloadProviderFunctionalTest.java