OLD | NEW |
---|---|
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_ |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 | 60 |
61 VideoQualityTest(); | 61 VideoQualityTest(); |
62 void RunWithAnalyzer(const Params& params); | 62 void RunWithAnalyzer(const Params& params); |
63 void RunWithVideoRenderer(const Params& params); | 63 void RunWithVideoRenderer(const Params& params); |
64 | 64 |
65 protected: | 65 protected: |
66 // No-op implementation to be able to instantiate this class from non-TEST_F | 66 // No-op implementation to be able to instantiate this class from non-TEST_F |
67 // locations. | 67 // locations. |
68 void TestBody() override; | 68 void TestBody() override; |
69 | 69 |
70 // Own variants that use capturer_ instead of frame_generator_capturer_. | |
pbos-webrtc
2015/09/21 16:09:10
Should frame_generator_capturer_ in test::CallTest
ivica
2015/09/21 16:17:53
There is some code that uses CallTest and assumes
| |
71 void Start(); | |
pbos-webrtc
2015/09/21 16:09:10
Are these overriding anything? Where are they call
ivica
2015/09/21 16:17:53
CallTest has Start(), Stop(), but non-virtual.
The
| |
72 void Stop(); | |
73 | |
70 void CreateCapturer(const Params& params, VideoCaptureInput* input); | 74 void CreateCapturer(const Params& params, VideoCaptureInput* input); |
71 void ValidateParams(const Params& params); | 75 void ValidateParams(const Params& params); |
72 void SetupFullStack(const Params& params, | 76 void SetupFullStack(const Params& params, |
73 newapi::Transport* send_transport, | 77 newapi::Transport* send_transport, |
74 newapi::Transport* recv_transport); | 78 newapi::Transport* recv_transport); |
75 void SetupScreenshare(const Params& params); | 79 void SetupScreenshare(const Params& params); |
76 | 80 |
81 // We need a more general capturer than the FrameGeneratorCapturer. | |
82 rtc::scoped_ptr<test::VideoCapturer> capturer_; | |
77 rtc::scoped_ptr<test::TraceToStderr> trace_to_stderr_; | 83 rtc::scoped_ptr<test::TraceToStderr> trace_to_stderr_; |
78 rtc::scoped_ptr<test::FrameGenerator> frame_generator_; | 84 rtc::scoped_ptr<test::FrameGenerator> frame_generator_; |
79 rtc::scoped_ptr<VideoEncoder> encoder_; | 85 rtc::scoped_ptr<VideoEncoder> encoder_; |
80 VideoCodecUnion codec_settings_; | 86 VideoCodecUnion codec_settings_; |
81 Clock* const clock_; | 87 Clock* const clock_; |
82 }; | 88 }; |
83 | 89 |
84 } // namespace webrtc | 90 } // namespace webrtc |
85 | 91 |
86 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ | 92 #endif // WEBRTC_VIDEO_VIDEO_QUALITY_TEST_H_ |
OLD | NEW |