Add testSendLargeTrackToGoogle test case to test send a big track(which has more than 100 points) to Google.

This commit is contained in:
youtaol
2013-04-24 16:21:09 +08:00
parent 2654a1484c
commit 7cd9990cfb
@@ -184,6 +184,19 @@ public class SendToGoogleTest extends ActivityInstrumentationTestCase2<TrackList
return true;
}
/**
* Sends a large track to Google.
*
* @throws GoogleAuthException
* @throws IOException
*/
public void testSendLargeTrackToGoogle() throws IOException, GoogleAuthException {
EndToEndTestUtils.deleteAllTracks();
EndToEndTestUtils.createSimpleTrack(200, false);
instrumentation.waitForIdleSync();
checkSendTrackToGoogle();
}
@Override
protected void tearDown() throws Exception {
EndToEndTestUtils.activityType = EndToEndTestUtils.DEFAULTACTIVITYTYPE;