From 96dc6270d47a730357ef4711f89cd3b20b4522c1 Mon Sep 17 00:00:00 2001 From: "mikhal@webrtc.org" Date: Thu, 13 Dec 2012 19:53:26 +0000 Subject: [PATCH] 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 --- .../video_processing/main/test/unit_test/unit_test.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/webrtc/modules/video_processing/main/test/unit_test/unit_test.cc b/webrtc/modules/video_processing/main/test/unit_test/unit_test.cc index e4775fc069..dc7794411f 100644 --- a/webrtc/modules/video_processing/main/test/unit_test/unit_test.cc +++ b/webrtc/modules/video_processing/main/test/unit_test/unit_test.cc @@ -213,13 +213,11 @@ TEST_F(VideoProcessingModuleTest, FrameStats) TEST_F(VideoProcessingModuleTest, PreprocessorLogic) { - // Disable temporal sampling. - int resolution = 100; + // Disable temporal sampling (frame dropping). _vpm->EnableTemporalDecimation(false); + int resolution = 100; EXPECT_EQ(VPM_OK, _vpm->SetMaxFrameRate(30)); EXPECT_EQ(VPM_OK, _vpm->SetTargetResolution(resolution, resolution, 15)); - // Revert - _vpm->EnableTemporalDecimation(true); EXPECT_EQ(VPM_OK, _vpm->SetTargetResolution(resolution, resolution, 30)); // Disable spatial sampling. _vpm->SetInputFrameResampleMode(kNoRescaling);