Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: webrtc/test/call_test.h

Issue 2774463003: Don't hardcode MediaType::ANY in FakeNetworkPipe. (Closed)
Patch Set: Update FakeCall::DeliverPacket, for consistency with Call::DeliverRtp. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.cc ('k') | webrtc/test/call_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.cc ('k') | webrtc/test/call_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698