diff options
author | mikhal@webrtc.org <mikhal@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2012-10-25 15:23:11 +0000 |
---|---|---|
committer | mikhal@webrtc.org <mikhal@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | 2012-10-25 15:23:11 +0000 |
commit | 9169b51fe722081b8ea698e84a62b8335969f39c (patch) | |
tree | 97156cb7b5fb02e4538183d3c8fe367b77f549e7 /webrtc/modules/video_processing/main/test | |
parent | 512535097e543333584f268eb62fe81c9ac76cc6 (diff) | |
download | webrtc-9169b51fe722081b8ea698e84a62b8335969f39c.tar.gz |
Fixing vpm valgrind issues introduced in r2893
Review URL: https://webrtc-codereview.appspot.com/933007
git-svn-id: http://webrtc.googlecode.com/svn/trunk@2996 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'webrtc/modules/video_processing/main/test')
-rw-r--r-- | webrtc/modules/video_processing/main/test/unit_test/unit_test.cc | 6 |
1 files changed, 1 insertions, 5 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 967a8f0af4..0a0fa1f507 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 @@ -71,11 +71,8 @@ void VideoProcessingModuleTest::TearDown() TEST_F(VideoProcessingModuleTest, HandleNullBuffer) { + // TODO(mikhal/stefan): Do we need this one? VideoProcessingModule::FrameStats stats; - memset(_videoFrame.buffer(kYPlane), 0, _size_y); - memset(_videoFrame.buffer(kUPlane), 0, _size_uv); - memset(_videoFrame.buffer(kVPlane), 0, _size_uv); - ASSERT_EQ(0, _vpm->GetFrameStats(&stats, _videoFrame)); // Video frame with unallocated buffer. I420VideoFrame videoFrame; videoFrame.set_width(_width); @@ -112,7 +109,6 @@ TEST_F(VideoProcessingModuleTest, HandleBadStats) TEST_F(VideoProcessingModuleTest, HandleBadSize) { VideoProcessingModule::FrameStats stats; - ASSERT_EQ(0, _vpm->GetFrameStats(&stats, _videoFrame)); _videoFrame.ResetSize(); _videoFrame.set_width(_width); |