diff options
author | Steve Howard <showard@google.com> | 2010-08-06 11:22:53 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-08-06 11:22:54 -0700 |
commit | da5a4183312f520cf35b154d33cb7205e6ba5557 (patch) | |
tree | a1e4f63ca42fa81e79535f28b0af994a54bc3955 /tests/src | |
parent | a3c9f66a80c4d801b893f7867041f34d902156fe (diff) | |
parent | 9da9df3d6e84a3c4b04dd22d277e0e6d8f7f1ccb (diff) | |
download | android_packages_providers_DownloadProvider-da5a4183312f520cf35b154d33cb7205e6ba5557.tar.gz android_packages_providers_DownloadProvider-da5a4183312f520cf35b154d33cb7205e6ba5557.tar.bz2 android_packages_providers_DownloadProvider-da5a4183312f520cf35b154d33cb7205e6ba5557.zip |
Merge "Make all public API downloads visible." into gingerbread
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java index b601846a..840b20ac 100644 --- a/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java +++ b/tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java @@ -358,8 +358,7 @@ public class PublicApiFunctionalTest extends AbstractPublicApiTest { } public void testNotificationClickedBroadcast() throws Exception { - Download download = enqueueRequest(getRequest().setShowNotification( - DownloadManager.Request.NOTIFICATION_WHEN_RUNNING)); + Download download = enqueueRequest(getRequest()); DownloadReceiver receiver = new DownloadReceiver(); receiver.mSystemFacade = mSystemFacade; @@ -431,15 +430,13 @@ public class PublicApiFunctionalTest extends AbstractPublicApiTest { public void testNotifications() throws Exception { enqueueEmptyResponse(HTTP_OK); - Download download = enqueueRequest(getRequest()); // no visibility requested + Download download = enqueueRequest(getRequest().setShowRunningNotification(false)); download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); assertEquals(0, mSystemFacade.mActiveNotifications.size()); assertEquals(0, mSystemFacade.mCanceledNotifications.size()); enqueueEmptyResponse(HTTP_OK); - download = enqueueRequest( - getRequest() - .setShowNotification(DownloadManager.Request.NOTIFICATION_WHEN_RUNNING)); + download = enqueueRequest(getRequest()); // notifications by default download.runUntilStatus(DownloadManager.STATUS_SUCCESSFUL); assertEquals(1, mSystemFacade.mActiveNotifications.size()); |