Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: webrtc/modules/video_processing/test/video_processing_unittest.h

Issue 1917703002: Fix an issue in external VNR when width or height not divisible by 16. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/video_processing/test/video_processing_unittest.h
diff --git a/webrtc/modules/video_processing/test/video_processing_unittest.h b/webrtc/modules/video_processing/test/video_processing_unittest.h
index 3433c6ca868f8c2d7a4e32d73b4e1e5147f7eab8..7c0c1dfe5c5823d6281ecfbaa515a9f0b12e4483 100644
--- a/webrtc/modules/video_processing/test/video_processing_unittest.h
+++ b/webrtc/modules/video_processing/test/video_processing_unittest.h
@@ -20,20 +20,21 @@
namespace webrtc {
-class VideoProcessingTest : public ::testing::Test {
+typedef struct {
+ std::string file_name;
+ int width;
+ int height;
+} VideoToTest;
+
+class VideoProcessingTest : public ::testing::TestWithParam<VideoToTest> {
protected:
VideoProcessingTest();
virtual void SetUp();
virtual void TearDown();
- static void SetUpTestCase() {
- Trace::CreateTrace();
- std::string trace_file = webrtc::test::OutputPath() + "VPMTrace.txt";
- ASSERT_EQ(0, Trace::SetTraceFile(trace_file.c_str()));
- }
- static void TearDownTestCase() { Trace::ReturnTrace(); }
VideoProcessing* vp_;
FILE* source_file_;
VideoFrame video_frame_;
+ const VideoToTest vtt_;
const int width_;
const int half_width_;
const int height_;

Powered by Google App Engine
This is Rietveld 408576698