| 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_ |
| 11 #define WEBRTC_TEST_CALL_TEST_H_ | 11 #define WEBRTC_TEST_CALL_TEST_H_ |
| 12 | 12 |
| 13 #include <memory> | 13 #include <memory> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "webrtc/call.h" | 16 #include "webrtc/call.h" |
| 17 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
| 17 #include "webrtc/test/encoder_settings.h" | 18 #include "webrtc/test/encoder_settings.h" |
| 18 #include "webrtc/test/fake_audio_device.h" | 19 #include "webrtc/test/fake_audio_device.h" |
| 19 #include "webrtc/test/fake_decoder.h" | 20 #include "webrtc/test/fake_decoder.h" |
| 20 #include "webrtc/test/fake_encoder.h" | 21 #include "webrtc/test/fake_encoder.h" |
| 21 #include "webrtc/test/fake_videorenderer.h" | 22 #include "webrtc/test/fake_videorenderer.h" |
| 22 #include "webrtc/test/frame_generator_capturer.h" | 23 #include "webrtc/test/frame_generator_capturer.h" |
| 23 #include "webrtc/test/rtp_rtcp_observer.h" | 24 #include "webrtc/test/rtp_rtcp_observer.h" |
| 24 | 25 |
| 25 namespace webrtc { | 26 namespace webrtc { |
| 26 | 27 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 84 |
| 84 void CreateVideoStreams(); | 85 void CreateVideoStreams(); |
| 85 void CreateAudioStreams(); | 86 void CreateAudioStreams(); |
| 86 void Start(); | 87 void Start(); |
| 87 void Stop(); | 88 void Stop(); |
| 88 void DestroyStreams(); | 89 void DestroyStreams(); |
| 89 void SetFakeVideoCaptureRotation(VideoRotation rotation); | 90 void SetFakeVideoCaptureRotation(VideoRotation rotation); |
| 90 | 91 |
| 91 Clock* const clock_; | 92 Clock* const clock_; |
| 92 | 93 |
| 94 webrtc::RtcEventLogNullImpl event_log_; |
| 93 std::unique_ptr<Call> sender_call_; | 95 std::unique_ptr<Call> sender_call_; |
| 94 std::unique_ptr<PacketTransport> send_transport_; | 96 std::unique_ptr<PacketTransport> send_transport_; |
| 95 VideoSendStream::Config video_send_config_; | 97 VideoSendStream::Config video_send_config_; |
| 96 VideoEncoderConfig video_encoder_config_; | 98 VideoEncoderConfig video_encoder_config_; |
| 97 VideoSendStream* video_send_stream_; | 99 VideoSendStream* video_send_stream_; |
| 98 AudioSendStream::Config audio_send_config_; | 100 AudioSendStream::Config audio_send_config_; |
| 99 AudioSendStream* audio_send_stream_; | 101 AudioSendStream* audio_send_stream_; |
| 100 | 102 |
| 101 std::unique_ptr<Call> receiver_call_; | 103 std::unique_ptr<Call> receiver_call_; |
| 102 std::unique_ptr<PacketTransport> receive_transport_; | 104 std::unique_ptr<PacketTransport> receive_transport_; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 174 |
| 173 virtual void ModifyAudioConfigs( | 175 virtual void ModifyAudioConfigs( |
| 174 AudioSendStream::Config* send_config, | 176 AudioSendStream::Config* send_config, |
| 175 std::vector<AudioReceiveStream::Config>* receive_configs); | 177 std::vector<AudioReceiveStream::Config>* receive_configs); |
| 176 virtual void OnAudioStreamsCreated( | 178 virtual void OnAudioStreamsCreated( |
| 177 AudioSendStream* send_stream, | 179 AudioSendStream* send_stream, |
| 178 const std::vector<AudioReceiveStream*>& receive_streams); | 180 const std::vector<AudioReceiveStream*>& receive_streams); |
| 179 | 181 |
| 180 virtual void OnFrameGeneratorCapturerCreated( | 182 virtual void OnFrameGeneratorCapturerCreated( |
| 181 FrameGeneratorCapturer* frame_generator_capturer); | 183 FrameGeneratorCapturer* frame_generator_capturer); |
| 184 |
| 185 webrtc::RtcEventLogNullImpl event_log_; |
| 182 }; | 186 }; |
| 183 | 187 |
| 184 class SendTest : public BaseTest { | 188 class SendTest : public BaseTest { |
| 185 public: | 189 public: |
| 186 explicit SendTest(unsigned int timeout_ms); | 190 explicit SendTest(unsigned int timeout_ms); |
| 187 | 191 |
| 188 bool ShouldCreateReceivers() const override; | 192 bool ShouldCreateReceivers() const override; |
| 189 }; | 193 }; |
| 190 | 194 |
| 191 class EndToEndTest : public BaseTest { | 195 class EndToEndTest : public BaseTest { |
| 192 public: | 196 public: |
| 193 explicit EndToEndTest(unsigned int timeout_ms); | 197 explicit EndToEndTest(unsigned int timeout_ms); |
| 194 | 198 |
| 195 bool ShouldCreateReceivers() const override; | 199 bool ShouldCreateReceivers() const override; |
| 196 }; | 200 }; |
| 197 | 201 |
| 198 } // namespace test | 202 } // namespace test |
| 199 } // namespace webrtc | 203 } // namespace webrtc |
| 200 | 204 |
| 201 #endif // WEBRTC_TEST_CALL_TEST_H_ | 205 #endif // WEBRTC_TEST_CALL_TEST_H_ |
| OLD | NEW |