Introduce a seam to ConnectivityManager and TelephonyManager
authorSteve Howard <showard@google.com>
Thu, 15 Jul 2010 22:57:31 +0000 (15:57 -0700)
committerSteve Howard <showard@google.com>
Thu, 15 Jul 2010 23:22:52 +0000 (16:22 -0700)
commitaf28400b74de05862b470412a5c92f68e99f59f8
tree9bed7e915f12354803cba98c51d81cac82c94e9a
parent88ea0b39bb74c7f8204ba74d3e83bce440a59d88
Introduce a seam to ConnectivityManager and TelephonyManager

This change abstracts access to ConnectivityManager and
TelephonyManager behind methods on SystemFacade, moving the code from
Helpers into RealSystemFacade and adding fake implementations to
FakeSystemFacade.  This facilitates new connectivity tests.

Change-Id: Id6c6b861e1d4ca45b3c1572bfb8ae0aa26af756b
src/com/android/providers/downloads/DownloadProvider.java
src/com/android/providers/downloads/DownloadReceiver.java
src/com/android/providers/downloads/DownloadService.java
src/com/android/providers/downloads/DownloadThread.java
src/com/android/providers/downloads/Helpers.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/DownloadManagerFunctionalTest.java
tests/src/com/android/providers/downloads/FakeIConnectivityManager.java [deleted file]
tests/src/com/android/providers/downloads/FakeSystemFacade.java