1/* 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11#ifndef WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_TEST_UNIT_TEST_VIDEO_PROCESSING_UNITTEST_H 12#define WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_TEST_UNIT_TEST_VIDEO_PROCESSING_UNITTEST_H 13 14#include "testing/gtest/include/gtest/gtest.h" 15#include "webrtc/modules/video_processing/main/interface/video_processing.h" 16#include "webrtc/system_wrappers/interface/trace.h" 17#include "webrtc/test/testsupport/fileutils.h" 18 19namespace webrtc { 20 21class VideoProcessingModuleTest : public ::testing::Test { 22 protected: 23 VideoProcessingModuleTest(); 24 virtual void SetUp(); 25 virtual void TearDown(); 26 static void SetUpTestCase() { 27 Trace::CreateTrace(); 28 std::string trace_file = webrtc::test::OutputPath() + "VPMTrace.txt"; 29 ASSERT_EQ(0, Trace::SetTraceFile(trace_file.c_str())); 30 } 31 static void TearDownTestCase() { 32 Trace::ReturnTrace(); 33 } 34 VideoProcessingModule* vpm_; 35 FILE* source_file_; 36 I420VideoFrame video_frame_; 37 const int width_; 38 const int half_width_; 39 const int height_; 40 const int size_y_; 41 const int size_uv_; 42 const unsigned int frame_length_; 43}; 44 45} // namespace webrtc 46 47#endif // WEBRTC_MODULES_VIDEO_PROCESSING_MAIN_TEST_UNIT_TEST_VIDEO_PROCESSING_UNITTEST_H 48