[android] Initial integration with liblocation 1.0.0 and telemetry 4.0.0, bumped gms to 16.0.0

This commit is contained in:
Andrey Li
2018-10-26 09:08:24 -07:00
committed by Łukasz Paczos
parent c9add3646e
commit 2c70f4b6dc
6 changed files with 149 additions and 130 deletions

View File

@@ -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()