diff options
author | Mike Lockwood <lockwood@android.com> | 2009-05-07 13:29:59 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-05-07 13:29:59 -0400 |
commit | 7f7840b41e1253b1bb03e40014611a37adec7c6c (patch) | |
tree | 6a645e0d32302fee73e447e96ebe9675dad873a4 /tests | |
parent | 95427cdbd802f7cb529d62bb79953c45b36a8fcf (diff) | |
download | frameworks_base-7f7840b41e1253b1bb03e40014611a37adec7c6c.zip frameworks_base-7f7840b41e1253b1bb03e40014611a37adec7c6c.tar.gz frameworks_base-7f7840b41e1253b1bb03e40014611a37adec7c6c.tar.bz2 |
CoreTests: Fix LocationManagerProximityTest.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CoreTests/android/location/LocationManagerProximityTest.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/CoreTests/android/location/LocationManagerProximityTest.java b/tests/CoreTests/android/location/LocationManagerProximityTest.java index e1501e3..3f43bcf 100644 --- a/tests/CoreTests/android/location/LocationManagerProximityTest.java +++ b/tests/CoreTests/android/location/LocationManagerProximityTest.java @@ -52,11 +52,7 @@ public class LocationManagerProximityTest extends AndroidTestCase { private static final String LOG_TAG = "LocationProximityTest"; - // use network provider as mock location provider, because: - // - proximity alert is hardcoded to listen to only network or gps - // - 'network' provider is not installed in emulator, so can mock it - // using test provider APIs - private static final String PROVIDER_NAME = LocationManager.NETWORK_PROVIDER; + private static final String PROVIDER_NAME = "test"; @Override protected void setUp() throws Exception { @@ -84,6 +80,7 @@ public class LocationManagerProximityTest extends AndroidTestCase { false, // upportsBearing, Criteria.POWER_MEDIUM, // powerRequirement Criteria.ACCURACY_FINE); // accuracy + mLocationManager.setTestProviderEnabled(PROVIDER_NAME, true); } @Override |