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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 165 |
166 virtual std::unique_ptr<FakeAudioDevice::Capturer> CreateCapturer(); | 166 virtual std::unique_ptr<FakeAudioDevice::Capturer> CreateCapturer(); |
167 virtual std::unique_ptr<FakeAudioDevice::Renderer> CreateRenderer(); | 167 virtual std::unique_ptr<FakeAudioDevice::Renderer> CreateRenderer(); |
168 virtual void OnFakeAudioDevicesCreated(FakeAudioDevice* send_audio_device, | 168 virtual void OnFakeAudioDevicesCreated(FakeAudioDevice* send_audio_device, |
169 FakeAudioDevice* recv_audio_device); | 169 FakeAudioDevice* recv_audio_device); |
170 | 170 |
171 virtual Call::Config GetSenderCallConfig(); | 171 virtual Call::Config GetSenderCallConfig(); |
172 virtual Call::Config GetReceiverCallConfig(); | 172 virtual Call::Config GetReceiverCallConfig(); |
173 virtual void OnCallsCreated(Call* sender_call, Call* receiver_call); | 173 virtual void OnCallsCreated(Call* sender_call, Call* receiver_call); |
174 | 174 |
| 175 // The default implementation creates MediaType::VIDEO transports. |
175 virtual test::PacketTransport* CreateSendTransport(Call* sender_call); | 176 virtual test::PacketTransport* CreateSendTransport(Call* sender_call); |
176 virtual test::PacketTransport* CreateReceiveTransport(); | 177 virtual test::PacketTransport* CreateReceiveTransport(); |
177 | 178 |
178 virtual void ModifyVideoConfigs( | 179 virtual void ModifyVideoConfigs( |
179 VideoSendStream::Config* send_config, | 180 VideoSendStream::Config* send_config, |
180 std::vector<VideoReceiveStream::Config>* receive_configs, | 181 std::vector<VideoReceiveStream::Config>* receive_configs, |
181 VideoEncoderConfig* encoder_config); | 182 VideoEncoderConfig* encoder_config); |
182 virtual void ModifyVideoCaptureStartResolution(int* width, | 183 virtual void ModifyVideoCaptureStartResolution(int* width, |
183 int* heigt, | 184 int* heigt, |
184 int* frame_rate); | 185 int* frame_rate); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 EndToEndTest(); | 219 EndToEndTest(); |
219 explicit EndToEndTest(unsigned int timeout_ms); | 220 explicit EndToEndTest(unsigned int timeout_ms); |
220 | 221 |
221 bool ShouldCreateReceivers() const override; | 222 bool ShouldCreateReceivers() const override; |
222 }; | 223 }; |
223 | 224 |
224 } // namespace test | 225 } // namespace test |
225 } // namespace webrtc | 226 } // namespace webrtc |
226 | 227 |
227 #endif // WEBRTC_TEST_CALL_TEST_H_ | 228 #endif // WEBRTC_TEST_CALL_TEST_H_ |
OLD | NEW |