vpm unit test: Diasble frame dropping in tests

(follow up on r3284)

BUG=

Review URL: https://webrtc-codereview.appspot.com/991005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@3285 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mikhal@webrtc.org 2012-12-13 19:53:26 +00:00
parent 4493db5a3e
commit 96dc6270d4

View File

@ -213,13 +213,11 @@ TEST_F(VideoProcessingModuleTest, FrameStats)
TEST_F(VideoProcessingModuleTest, PreprocessorLogic) TEST_F(VideoProcessingModuleTest, PreprocessorLogic)
{ {
// Disable temporal sampling. // Disable temporal sampling (frame dropping).
int resolution = 100;
_vpm->EnableTemporalDecimation(false); _vpm->EnableTemporalDecimation(false);
int resolution = 100;
EXPECT_EQ(VPM_OK, _vpm->SetMaxFrameRate(30)); EXPECT_EQ(VPM_OK, _vpm->SetMaxFrameRate(30));
EXPECT_EQ(VPM_OK, _vpm->SetTargetResolution(resolution, resolution, 15)); EXPECT_EQ(VPM_OK, _vpm->SetTargetResolution(resolution, resolution, 15));
// Revert
_vpm->EnableTemporalDecimation(true);
EXPECT_EQ(VPM_OK, _vpm->SetTargetResolution(resolution, resolution, 30)); EXPECT_EQ(VPM_OK, _vpm->SetTargetResolution(resolution, resolution, 30));
// Disable spatial sampling. // Disable spatial sampling.
_vpm->SetInputFrameResampleMode(kNoRescaling); _vpm->SetInputFrameResampleMode(kNoRescaling);