diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-11-07 17:26:05 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-11-07 17:26:06 -0800 |
commit | 39c16ef7f5a30148107695a4a9a2e1fc5c2a6095 (patch) | |
tree | 11130b3aa66de333449fdc0f5d47b7c0d831b279 | |
parent | 86bfc4c888d460a6d11dc9e71cb50767dc8e3cea (diff) | |
parent | fcda459e89b724ef9e7c670c5a03e0526afebbd8 (diff) | |
download | cts-39c16ef7f5a30148107695a4a9a2e1fc5c2a6095.tar.gz |
Merge "Add a CTS test for when location is already within geofence." into jb-mr1-dev
-rwxr-xr-x | tests/tests/location/src/android/location/cts/LocationManagerTest.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/tests/location/src/android/location/cts/LocationManagerTest.java b/tests/tests/location/src/android/location/cts/LocationManagerTest.java index 267d8b1a062..edfda5a54b3 100755 --- a/tests/tests/location/src/android/location/cts/LocationManagerTest.java +++ b/tests/tests/location/src/android/location/cts/LocationManagerTest.java @@ -631,6 +631,21 @@ public class LocationManagerTest extends InstrumentationTestCase { } /** + * Tests basic proximity alert when initially within proximity + */ + public void testInitiallyWithinProximity() throws Exception { + // need to mock the fused location provider for proximity tests + mockFusedLocation(); + + updateLocationAndWait(FUSED_PROVIDER_NAME, 0, 0); + registerProximityListener(0, 0, 1000, 10000); + waitForReceiveBroadcast(); + assertProximityType(true); + + unmockFusedLocation(); + } + + /** * Helper variant for testing enter proximity scenario * TODO: add additional parameters as more scenarios are added * |