diff options
author | Andrey Li <andrey.li@mapbox.com> | 2018-10-26 09:08:24 -0700 |
---|---|---|
committer | Łukasz Paczos <lukasz.paczos@mapbox.com> | 2018-11-29 19:26:21 +0100 |
commit | 2c70f4b6dc7d9c9c67f7a78e4290335f137392d9 (patch) | |
tree | 11a10449edc98e736bc205007e66126eda704d4e /platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location | |
parent | c9add3646ea80654a3e2a2e81d750a92f7c8e999 (diff) | |
download | qtlocation-mapboxgl-2c70f4b6dc7d9c9c67f7a78e4290335f137392d9.tar.gz |
[android] Initial integration with liblocation 1.0.0 and telemetry 4.0.0, bumped gms to 16.0.0
Diffstat (limited to 'platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location')
-rw-r--r-- | platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt index 444b478219..adb01241c4 100644 --- a/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt +++ b/platform/android/MapboxGLAndroidSDKTestApp/src/androidTest/java/com/mapbox/mapboxsdk/location/LocationComponentTest.kt @@ -77,7 +77,6 @@ class LocationComponentTest : BaseActivityTest() { assertThat(locationEngine, notNullValue()) uiController.loopMainThreadForAtLeast(MAP_CONNECTION_DELAY) - assertThat(locationEngine?.isConnected, `is`(true)) } } @@ -107,7 +106,6 @@ class LocationComponentTest : BaseActivityTest() { assertThat(componentOptions, notNullValue()) uiController.loopMainThreadForAtLeast(MAP_CONNECTION_DELAY) - assertThat(locationEngine?.isConnected, `is`(true)) assertThat(componentOptions?.accuracyAlpha(), `is`(.5f)) assertThat(componentOptions?.accuracyColor(), `is`(Color.BLUE)) } @@ -1174,25 +1172,6 @@ class LocationComponentTest : BaseActivityTest() { executeComponentTest(componentAction) } - @Test - fun defaultLocationEngine_deactivatedWhenDestroyed() { - val componentAction = object : LocationComponentAction.OnPerformLocationComponentAction { - override fun onLocationComponentAction(component: LocationComponent, mapboxMap: MapboxMap, - uiController: UiController, context: Context) { - component.activateLocationComponent(context) - component.isLocationComponentEnabled = true - uiController.loopMainThreadForAtLeast(MAP_CONNECTION_DELAY) - assertThat(component.locationEngine?.isConnected, `is`(true)) - - component.onStop() - component.onDestroy() - assertThat(component.locationEngine?.isConnected, `is`(false)) - } - } - - executeComponentTest(componentAction) - } - @After override fun afterTest() { super.afterTest() |