Skip to content

Commit

Permalink
shorted duration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
  • Loading branch information
jennuine committed Oct 28, 2020
1 parent bb2a1e9 commit 797aa0e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/integration/encoder_timing.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void durationTest(VideoEncoder &_vidEncoder, Video &_video,
_video.Load(common::cwd() + "/TMP_RECORDING.mp4");

EXPECT_NEAR(std::chrono::duration_cast<std::chrono::milliseconds>(
_video.Duration()).count(),
_video.Duration()).count(),
_seconds*1000,
kTol);
}
Expand All @@ -57,7 +57,8 @@ TEST(EncoderTimingTest, Duration)
Video video;

durationTest(vidEncoder, video, 50, 1);
durationTest(vidEncoder, video, 30, 5);
durationTest(vidEncoder, video, 60, 10);
durationTest(vidEncoder, video, 25, 20);
durationTest(vidEncoder, video, 30, 2);
durationTest(vidEncoder, video, 25, 5);

delete [] kFrame;
}

0 comments on commit 797aa0e

Please sign in to comment.