OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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_TEST_CALL_TEST_H_ | 10 #ifndef WEBRTC_TEST_CALL_TEST_H_ |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 void CreateVideoStreams(); | 107 void CreateVideoStreams(); |
108 void CreateAudioStreams(); | 108 void CreateAudioStreams(); |
109 void CreateFlexfecStreams(); | 109 void CreateFlexfecStreams(); |
110 void Start(); | 110 void Start(); |
111 void Stop(); | 111 void Stop(); |
112 void DestroyStreams(); | 112 void DestroyStreams(); |
113 void SetFakeVideoCaptureRotation(VideoRotation rotation); | 113 void SetFakeVideoCaptureRotation(VideoRotation rotation); |
114 | 114 |
115 Clock* const clock_; | 115 Clock* const clock_; |
116 | 116 |
117 webrtc::RtcEventLogNullImpl event_log_; | 117 std::unique_ptr<webrtc::RtcEventLog> event_log_; |
118 std::unique_ptr<Call> sender_call_; | 118 std::unique_ptr<Call> sender_call_; |
119 std::unique_ptr<PacketTransport> send_transport_; | 119 std::unique_ptr<PacketTransport> send_transport_; |
120 VideoSendStream::Config video_send_config_; | 120 VideoSendStream::Config video_send_config_; |
121 VideoEncoderConfig video_encoder_config_; | 121 VideoEncoderConfig video_encoder_config_; |
122 VideoSendStream* video_send_stream_; | 122 VideoSendStream* video_send_stream_; |
123 AudioSendStream::Config audio_send_config_; | 123 AudioSendStream::Config audio_send_config_; |
124 AudioSendStream* audio_send_stream_; | 124 AudioSendStream* audio_send_stream_; |
125 | 125 |
126 std::unique_ptr<Call> receiver_call_; | 126 std::unique_ptr<Call> receiver_call_; |
127 std::unique_ptr<PacketTransport> receive_transport_; | 127 std::unique_ptr<PacketTransport> receive_transport_; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 virtual void ModifyFlexfecConfigs( | 220 virtual void ModifyFlexfecConfigs( |
221 std::vector<FlexfecReceiveStream::Config>* receive_configs); | 221 std::vector<FlexfecReceiveStream::Config>* receive_configs); |
222 virtual void OnFlexfecStreamsCreated( | 222 virtual void OnFlexfecStreamsCreated( |
223 const std::vector<FlexfecReceiveStream*>& receive_streams); | 223 const std::vector<FlexfecReceiveStream*>& receive_streams); |
224 | 224 |
225 virtual void OnFrameGeneratorCapturerCreated( | 225 virtual void OnFrameGeneratorCapturerCreated( |
226 FrameGeneratorCapturer* frame_generator_capturer); | 226 FrameGeneratorCapturer* frame_generator_capturer); |
227 | 227 |
228 virtual void OnTestFinished(); | 228 virtual void OnTestFinished(); |
229 | 229 |
230 webrtc::RtcEventLogNullImpl event_log_; | 230 std::unique_ptr<webrtc::RtcEventLog> event_log_; |
231 }; | 231 }; |
232 | 232 |
233 class SendTest : public BaseTest { | 233 class SendTest : public BaseTest { |
234 public: | 234 public: |
235 explicit SendTest(unsigned int timeout_ms); | 235 explicit SendTest(unsigned int timeout_ms); |
236 | 236 |
237 bool ShouldCreateReceivers() const override; | 237 bool ShouldCreateReceivers() const override; |
238 }; | 238 }; |
239 | 239 |
240 class EndToEndTest : public BaseTest { | 240 class EndToEndTest : public BaseTest { |
241 public: | 241 public: |
242 EndToEndTest(); | 242 EndToEndTest(); |
243 explicit EndToEndTest(unsigned int timeout_ms); | 243 explicit EndToEndTest(unsigned int timeout_ms); |
244 | 244 |
245 bool ShouldCreateReceivers() const override; | 245 bool ShouldCreateReceivers() const override; |
246 }; | 246 }; |
247 | 247 |
248 } // namespace test | 248 } // namespace test |
249 } // namespace webrtc | 249 } // namespace webrtc |
250 | 250 |
251 #endif // WEBRTC_TEST_CALL_TEST_H_ | 251 #endif // WEBRTC_TEST_CALL_TEST_H_ |
OLD | NEW |