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

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

Issue 1915973002: Revert of Enable video processing unittest to take video clips as param. (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 1c548d36c6a83fb6c179258cb34aedcef7e051e5..3433c6ca868f8c2d7a4e32d73b4e1e5147f7eab8 100644
--- a/webrtc/modules/video_processing/test/video_processing_unittest.h
+++ b/webrtc/modules/video_processing/test/video_processing_unittest.h
@@ -20,27 +20,26 @@
namespace webrtc {
-typedef struct {
- std::string file_name;
- int width;
- int height;
-} VideoToTest;
-
-class VideoProcessingTest : public ::testing::TestWithParam<VideoToTest> {
+class VideoProcessingTest : public ::testing::Test {
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_;
- VideoToTest vtt_;
- int width_;
- int half_width_;
- int height_;
- int size_y_;
- int size_uv_;
- size_t frame_length_;
+ const int width_;
+ const int half_width_;
+ const int height_;
+ const int size_y_;
+ const int size_uv_;
+ const size_t frame_length_;
};
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698