Stub out and test system notifications.
authorSteve Howard <showard@google.com>
Sat, 24 Jul 2010 03:32:21 +0000 (20:32 -0700)
committerSteve Howard <showard@google.com>
Sat, 24 Jul 2010 03:32:21 +0000 (20:32 -0700)
commit93155e1da7e89d4925e244f5afa94afb8ada7381
treea5cafd34f505277bf760162711eda1d90d9e0d4a
parent691fc58e9a61d99ab5018c5ddc8349ed413e4470
Stub out and test system notifications.

This change abstracts NotificationManager interactions behind
SystemFacade and takes advantage of that to test notifications, to a
limited degree.

It also fixes a silly typo in AbstractDownloadManagerFunctionalTest,
and it introduces an extra sleep between tests to avoid some
flakiness.  I'll look for a better solution to that problem after this
change goes in.

Change-Id: I3a0307f828955cd45b0e3581ad499da28cc0556e
src/com/android/providers/downloads/DownloadNotification.java
src/com/android/providers/downloads/DownloadReceiver.java
src/com/android/providers/downloads/DownloadService.java
src/com/android/providers/downloads/RealSystemFacade.java
src/com/android/providers/downloads/SystemFacade.java
tests/src/com/android/providers/downloads/AbstractDownloadManagerFunctionalTest.java
tests/src/com/android/providers/downloads/FakeSystemFacade.java
tests/src/com/android/providers/downloads/PublicApiFunctionalTest.java