This commit is contained in:
Dennis Guse
2021-07-17 10:05:28 +02:00
parent 9ab34eb846
commit a4580fc84e
4 changed files with 1 additions and 10 deletions
@@ -96,7 +96,7 @@ public class TrackRecordingServiceTestLocation {
service = ((TrackRecordingService.Binder) mServiceRule.bindService(TrackRecordingServiceTest.createStartIntent(context))) service = ((TrackRecordingService.Binder) mServiceRule.bindService(TrackRecordingServiceTest.createStartIntent(context)))
.getService(); .getService();
service.stopProcessingGPS(); service.getHandlerServer().stopGPS();
} }
@After @After
@@ -654,15 +654,6 @@ public class TrackRecordingService extends Service implements HandlerServer.Hand
return handlerServer; return handlerServer;
} }
/**
* To mock locations (to not get it from GPS).
*/
@Deprecated
@VisibleForTesting
public void stopProcessingGPS() {
handlerServer.stopGPS();
}
public LiveData<GpsStatusValue> getGpsStatusObservable() { public LiveData<GpsStatusValue> getGpsStatusObservable() {
return gpsStatusObservable; return gpsStatusObservable;
} }