forked from upstream-mirrors/OpenTracks
Apply review feedback.
This commit is contained in:
-27
@@ -15,17 +15,9 @@
|
||||
*/
|
||||
package com.google.android.apps.mytracks.services;
|
||||
|
||||
import static com.google.android.apps.mytracks.MyTracksConstants.RESUME_TRACK_EXTRA_NAME;
|
||||
|
||||
import com.google.android.apps.mytracks.content.MyTracksProviderUtils;
|
||||
import com.google.android.apps.mytracks.content.Track;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.IBinder;
|
||||
import android.test.ServiceTestCase;
|
||||
import android.test.mock.MockContentProvider;
|
||||
import android.test.mock.MockContentResolver;
|
||||
import android.test.mock.MockContext;
|
||||
import android.test.suitebuilder.annotation.MediumTest;
|
||||
import android.test.suitebuilder.annotation.SmallTest;
|
||||
|
||||
@@ -36,11 +28,9 @@ import android.test.suitebuilder.annotation.SmallTest;
|
||||
*/
|
||||
public class TrackRecordingServiceTest
|
||||
extends ServiceTestCase<TrackRecordingService> {
|
||||
private MyTracksProviderUtils providerUtils;
|
||||
|
||||
public TrackRecordingServiceTest() {
|
||||
super(TrackRecordingService.class);
|
||||
providerUtils = MyTracksProviderUtils.Factory.get(getContext());
|
||||
}
|
||||
|
||||
@SmallTest
|
||||
@@ -58,21 +48,4 @@ public class TrackRecordingServiceTest
|
||||
IBinder service = bindService(startIntent);
|
||||
assertNotNull(service);
|
||||
}
|
||||
|
||||
@MediumTest
|
||||
public void testResumeAfterReboot() throws Exception {
|
||||
// TODO: Figure out how to mock getContentResolver() before submit.
|
||||
/*
|
||||
Track dummyTrack = new Track();
|
||||
dummyTrack.setName("Dummy Track");
|
||||
providerUtils.insertTrack(dummyTrack);
|
||||
|
||||
Intent startIntent = new Intent();
|
||||
startIntent.setClass(getContext(), TrackRecordingService.class);
|
||||
startIntent.putExtra(RESUME_TRACK_EXTRA_NAME, true);
|
||||
startService(startIntent);
|
||||
assertNotNull(getService());
|
||||
assertFalse(getService().isRecording());
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user