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

Side by Side Diff: webrtc/video/video_quality_test.h

Issue 2745523002: Add FullStack test for simulcast screenshare mode. (Closed)
Patch Set: Implement Stefan@ comments Created 3 years, 9 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 | « webrtc/video/full_stack_tests.cc ('k') | webrtc/video/video_quality_test.cc » ('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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 10 #ifndef WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
11 #define WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 11 #define WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
12 12
13 #include <memory> 13 #include <memory>
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/modules/video_coding/codecs/vp8/simulcast_encoder_adapter.h"
17 #include "webrtc/test/call_test.h" 18 #include "webrtc/test/call_test.h"
18 #include "webrtc/test/frame_generator.h" 19 #include "webrtc/test/frame_generator.h"
19 #include "webrtc/test/testsupport/trace_to_stderr.h" 20 #include "webrtc/test/testsupport/trace_to_stderr.h"
20 21
21 namespace webrtc { 22 namespace webrtc {
22 23
23 class VideoQualityTest : public test::CallTest { 24 class VideoQualityTest : public test::CallTest {
24 public: 25 public:
25 // Parameters are grouped into smaller structs to make it easier to set 26 // Parameters are grouped into smaller structs to make it easier to set
26 // the desired elements and skip unused, using aggregate initialization. 27 // the desired elements and skip unused, using aggregate initialization.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 void StartEncodedFrameLogs(VideoSendStream* stream); 124 void StartEncodedFrameLogs(VideoSendStream* stream);
124 void StartEncodedFrameLogs(VideoReceiveStream* stream); 125 void StartEncodedFrameLogs(VideoReceiveStream* stream);
125 126
126 // We need a more general capturer than the FrameGeneratorCapturer. 127 // We need a more general capturer than the FrameGeneratorCapturer.
127 std::unique_ptr<test::VideoCapturer> video_capturer_; 128 std::unique_ptr<test::VideoCapturer> video_capturer_;
128 std::vector<std::unique_ptr<test::VideoCapturer>> thumbnail_capturers_; 129 std::vector<std::unique_ptr<test::VideoCapturer>> thumbnail_capturers_;
129 std::unique_ptr<test::TraceToStderr> trace_to_stderr_; 130 std::unique_ptr<test::TraceToStderr> trace_to_stderr_;
130 std::unique_ptr<test::FrameGenerator> frame_generator_; 131 std::unique_ptr<test::FrameGenerator> frame_generator_;
131 std::unique_ptr<VideoEncoder> video_encoder_; 132 std::unique_ptr<VideoEncoder> video_encoder_;
133 std::unique_ptr<VideoEncoderFactory> vp8_encoder_factory_;
134
132 std::vector<std::unique_ptr<VideoEncoder>> thumbnail_encoders_; 135 std::vector<std::unique_ptr<VideoEncoder>> thumbnail_encoders_;
133 std::vector<VideoSendStream::Config> thumbnail_send_configs_; 136 std::vector<VideoSendStream::Config> thumbnail_send_configs_;
134 std::vector<VideoEncoderConfig> thumbnail_encoder_configs_; 137 std::vector<VideoEncoderConfig> thumbnail_encoder_configs_;
135 std::vector<VideoSendStream*> thumbnail_send_streams_; 138 std::vector<VideoSendStream*> thumbnail_send_streams_;
136 std::vector<VideoReceiveStream::Config> thumbnail_receive_configs_; 139 std::vector<VideoReceiveStream::Config> thumbnail_receive_configs_;
137 std::vector<VideoReceiveStream*> thumbnail_receive_streams_; 140 std::vector<VideoReceiveStream*> thumbnail_receive_streams_;
138 141
139 Clock* const clock_; 142 Clock* const clock_;
140 143
141 int receive_logs_; 144 int receive_logs_;
142 int send_logs_; 145 int send_logs_;
143 146
144 VideoSendStream::DegradationPreference degradation_preference_ = 147 VideoSendStream::DegradationPreference degradation_preference_ =
145 VideoSendStream::DegradationPreference::kBalanced; 148 VideoSendStream::DegradationPreference::kBalanced;
146 Params params_; 149 Params params_;
147 }; 150 };
148 151
149 } // namespace webrtc 152 } // namespace webrtc
150 153
151 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ 154 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/video/full_stack_tests.cc ('k') | webrtc/video/video_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698