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

Side by Side Diff: webrtc/modules/video_coding/codecs/test/video_codec_test.h

Issue 2903163002: Add unit tests for qp parser. (Closed)
Patch Set: Refactor. Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/videoprocessor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ 11 #ifndef WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_
12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ 12 #define WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/api/video_codecs/video_decoder.h" 16 #include "webrtc/api/video_codecs/video_decoder.h"
17 #include "webrtc/api/video_codecs/video_encoder.h" 17 #include "webrtc/api/video_codecs/video_encoder.h"
18 #include "webrtc/base/criticalsection.h" 18 #include "webrtc/base/criticalsection.h"
19 #include "webrtc/base/event.h" 19 #include "webrtc/base/event.h"
20 #include "webrtc/base/thread_annotations.h" 20 #include "webrtc/base/thread_annotations.h"
21 #include "webrtc/modules/video_coding/include/video_codec_interface.h" 21 #include "webrtc/modules/video_coding/include/video_codec_interface.h"
22 #include "webrtc/modules/video_coding/utility/vp8_header_parser.h"
23 #include "webrtc/modules/video_coding/utility/vp9_uncompressed_header_parser.h"
22 #include "webrtc/test/gtest.h" 24 #include "webrtc/test/gtest.h"
23 25
24 namespace webrtc { 26 namespace webrtc {
25 27
26 class VideoCodecTest : public ::testing::Test { 28 class VideoCodecTest : public ::testing::Test {
27 public: 29 public:
28 VideoCodecTest() 30 VideoCodecTest()
29 : encode_complete_callback_(this), 31 : encode_complete_callback_(this),
30 decode_complete_callback_(this), 32 decode_complete_callback_(this),
31 encoded_frame_event_(false /* manual reset */, 33 encoded_frame_event_(false /* manual reset */,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 100
99 rtc::Event decoded_frame_event_; 101 rtc::Event decoded_frame_event_;
100 rtc::CriticalSection decoded_frame_section_; 102 rtc::CriticalSection decoded_frame_section_;
101 rtc::Optional<VideoFrame> decoded_frame_ GUARDED_BY(decoded_frame_section_); 103 rtc::Optional<VideoFrame> decoded_frame_ GUARDED_BY(decoded_frame_section_);
102 rtc::Optional<uint8_t> decoded_qp_ GUARDED_BY(decoded_frame_section_); 104 rtc::Optional<uint8_t> decoded_qp_ GUARDED_BY(decoded_frame_section_);
103 }; 105 };
104 106
105 } // namespace webrtc 107 } // namespace webrtc
106 108
107 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_ 109 #endif // WEBRTC_MODULES_VIDEO_CODING_CODECS_TEST_VIDEO_CODEC_TEST_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/video_coding/codecs/test/videoprocessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698