Add test cases about getSlowSpeed and getNormalSpeed methods in DynamicSpeedTrackPathDescriptor.

This commit is contained in:
youtaol
2012-12-10 18:32:10 +08:00
parent 2fb1280b12
commit 1a73df6edc
2 changed files with 38 additions and 6 deletions
@@ -129,6 +129,14 @@ public class DynamicSpeedTrackPathDescriptor implements TrackPathDescriptor {
int getSpeedMargin() {
return speedMargin;
}
/**
* Sets the speed margin.
*/
@VisibleForTesting
void setSpeedMargin(int value) {
speedMargin = value;
}
/**
* Gets the average moving speed.