| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 void CreateCalls(const Call::Config& sender_config, | 74 void CreateCalls(const Call::Config& sender_config, |
| 75 const Call::Config& receiver_config); | 75 const Call::Config& receiver_config); |
| 76 void CreateSenderCall(const Call::Config& config); | 76 void CreateSenderCall(const Call::Config& config); |
| 77 void CreateReceiverCall(const Call::Config& config); | 77 void CreateReceiverCall(const Call::Config& config); |
| 78 void DestroyCalls(); | 78 void DestroyCalls(); |
| 79 | 79 |
| 80 void CreateSendConfig(size_t num_video_streams, | 80 void CreateSendConfig(size_t num_video_streams, |
| 81 size_t num_audio_streams, | 81 size_t num_audio_streams, |
| 82 size_t num_flexfec_streams, | 82 size_t num_flexfec_streams, |
| 83 Transport* send_transport); | 83 Transport* send_transport, |
| 84 VideoSendStream::Config* video_send_config, |
| 85 VideoEncoderConfig* video_encoder_config, |
| 86 std::vector<uint32_t>* send_rtx_ssrcs); |
| 84 | 87 |
| 85 void CreateMatchingReceiveConfigs(Transport* rtcp_send_transport); | 88 void CreateMatchingReceiveConfigs( |
| 89 Transport* rtcp_send_transport, |
| 90 std::vector<VideoReceiveStream::Config>* video_receive_configs, |
| 91 std::vector<std::unique_ptr<VideoDecoder>>* allocated_decoders, |
| 92 VideoSendStream::Config* video_send_config); |
| 86 | 93 |
| 87 void CreateFrameGeneratorCapturerWithDrift(Clock* drift_clock, | 94 void CreateFrameGeneratorCapturerWithDrift(Clock* drift_clock, |
| 88 float speed, | 95 float speed, |
| 89 int framerate, | 96 int framerate, |
| 90 int width, | 97 int width, |
| 91 int height); | 98 int height); |
| 92 void CreateFrameGeneratorCapturer(int framerate, int width, int height); | 99 void CreateFrameGeneratorCapturer(int framerate, int width, int height); |
| 93 void CreateFakeAudioDevices( | 100 void CreateFakeAudioDevices( |
| 94 std::unique_ptr<FakeAudioDevice::Capturer> capturer, | 101 std::unique_ptr<FakeAudioDevice::Capturer> capturer, |
| 95 std::unique_ptr<FakeAudioDevice::Renderer> renderer); | 102 std::unique_ptr<FakeAudioDevice::Renderer> renderer); |
| 96 | 103 |
| 97 void CreateVideoStreams(); | 104 VideoSendStream* CreateVideoStreams( |
| 105 Call* sender_call, |
| 106 Call* receiver_call, |
| 107 VideoSendStream::Config* video_send_config, |
| 108 std::vector<VideoReceiveStream::Config>* video_receive_configs, |
| 109 std::vector<VideoReceiveStream*>* video_receive_streams, |
| 110 VideoEncoderConfig* video_encoder_config); |
| 98 void CreateAudioStreams(); | 111 void CreateAudioStreams(); |
| 99 void CreateFlexfecStreams(); | 112 void CreateFlexfecStreams(); |
| 100 | 113 |
| 101 void AssociateFlexfecStreamsWithVideoStreams(); | 114 void AssociateFlexfecStreamsWithVideoStreams(); |
| 102 void DissociateFlexfecStreamsFromVideoStreams(); | 115 void DissociateFlexfecStreamsFromVideoStreams(); |
| 103 | 116 |
| 104 void Start(); | 117 void Start(); |
| 105 void Stop(); | 118 void Stop(); |
| 106 void DestroyStreams(); | 119 void DestroyStreams(); |
| 107 void SetFakeVideoCaptureRotation(VideoRotation rotation); | 120 void SetFakeVideoCaptureRotation(VideoRotation rotation); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 EndToEndTest(); | 253 EndToEndTest(); |
| 241 explicit EndToEndTest(unsigned int timeout_ms); | 254 explicit EndToEndTest(unsigned int timeout_ms); |
| 242 | 255 |
| 243 bool ShouldCreateReceivers() const override; | 256 bool ShouldCreateReceivers() const override; |
| 244 }; | 257 }; |
| 245 | 258 |
| 246 } // namespace test | 259 } // namespace test |
| 247 } // namespace webrtc | 260 } // namespace webrtc |
| 248 | 261 |
| 249 #endif // WEBRTC_TEST_CALL_TEST_H_ | 262 #endif // WEBRTC_TEST_CALL_TEST_H_ |
| OLD | NEW |