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

Side by Side Diff: webrtc/call/call_perf_tests.cc

Issue 3001543002: Removed an unused variable from CallPerfTest::TestAudioVideoSync() (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | no next file » | 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 10
(...skipping 11 matching lines...) Expand all
22 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" 22 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
23 #include "webrtc/rtc_base/checks.h" 23 #include "webrtc/rtc_base/checks.h"
24 #include "webrtc/rtc_base/constructormagic.h" 24 #include "webrtc/rtc_base/constructormagic.h"
25 #include "webrtc/rtc_base/thread_annotations.h" 25 #include "webrtc/rtc_base/thread_annotations.h"
26 #include "webrtc/system_wrappers/include/metrics_default.h" 26 #include "webrtc/system_wrappers/include/metrics_default.h"
27 #include "webrtc/test/call_test.h" 27 #include "webrtc/test/call_test.h"
28 #include "webrtc/test/direct_transport.h" 28 #include "webrtc/test/direct_transport.h"
29 #include "webrtc/test/drifting_clock.h" 29 #include "webrtc/test/drifting_clock.h"
30 #include "webrtc/test/encoder_settings.h" 30 #include "webrtc/test/encoder_settings.h"
31 #include "webrtc/test/fake_audio_device.h" 31 #include "webrtc/test/fake_audio_device.h"
32 #include "webrtc/test/fake_decoder.h"
33 #include "webrtc/test/fake_encoder.h" 32 #include "webrtc/test/fake_encoder.h"
34 #include "webrtc/test/field_trial.h" 33 #include "webrtc/test/field_trial.h"
35 #include "webrtc/test/frame_generator.h" 34 #include "webrtc/test/frame_generator.h"
36 #include "webrtc/test/frame_generator_capturer.h" 35 #include "webrtc/test/frame_generator_capturer.h"
37 #include "webrtc/test/gtest.h" 36 #include "webrtc/test/gtest.h"
38 #include "webrtc/test/rtp_rtcp_observer.h" 37 #include "webrtc/test/rtp_rtcp_observer.h"
39 #include "webrtc/test/testsupport/fileutils.h" 38 #include "webrtc/test/testsupport/fileutils.h"
40 #include "webrtc/test/testsupport/perf_test.h" 39 #include "webrtc/test/testsupport/perf_test.h"
41 #include "webrtc/video/transport_adapter.h" 40 #include "webrtc/video/transport_adapter.h"
42 #include "webrtc/voice_engine/include/voe_base.h" 41 #include "webrtc/voice_engine/include/voe_base.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 test::PacketTransport video_send_transport( 197 test::PacketTransport video_send_transport(
199 sender_call_.get(), &observer, test::PacketTransport::kSender, 198 sender_call_.get(), &observer, test::PacketTransport::kSender,
200 video_pt_map, FakeNetworkPipe::Config()); 199 video_pt_map, FakeNetworkPipe::Config());
201 video_send_transport.SetReceiver(receiver_call_->Receiver()); 200 video_send_transport.SetReceiver(receiver_call_->Receiver());
202 201
203 test::PacketTransport receive_transport( 202 test::PacketTransport receive_transport(
204 receiver_call_.get(), &observer, test::PacketTransport::kReceiver, 203 receiver_call_.get(), &observer, test::PacketTransport::kReceiver,
205 payload_type_map_, FakeNetworkPipe::Config()); 204 payload_type_map_, FakeNetworkPipe::Config());
206 receive_transport.SetReceiver(sender_call_->Receiver()); 205 receive_transport.SetReceiver(sender_call_->Receiver());
207 206
208 test::FakeDecoder fake_decoder;
209
210 CreateSendConfig(1, 0, 0, &video_send_transport); 207 CreateSendConfig(1, 0, 0, &video_send_transport);
211 CreateMatchingReceiveConfigs(&receive_transport); 208 CreateMatchingReceiveConfigs(&receive_transport);
212 209
213 AudioSendStream::Config audio_send_config(&audio_send_transport); 210 AudioSendStream::Config audio_send_config(&audio_send_transport);
214 audio_send_config.voe_channel_id = send_channel_id; 211 audio_send_config.voe_channel_id = send_channel_id;
215 audio_send_config.rtp.ssrc = kAudioSendSsrc; 212 audio_send_config.rtp.ssrc = kAudioSendSsrc;
216 audio_send_config.send_codec_spec = 213 audio_send_config.send_codec_spec =
217 rtc::Optional<AudioSendStream::Config::SendCodecSpec>( 214 rtc::Optional<AudioSendStream::Config::SendCodecSpec>(
218 {kAudioSendPayloadType, {"ISAC", 16000, 1}}); 215 {kAudioSendPayloadType, {"ISAC", 16000, 1}});
219 audio_send_config.encoder_factory = CreateBuiltinAudioEncoderFactory(); 216 audio_send_config.encoder_factory = CreateBuiltinAudioEncoderFactory();
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 uint32_t last_set_bitrate_kbps_; 754 uint32_t last_set_bitrate_kbps_;
758 VideoSendStream* send_stream_; 755 VideoSendStream* send_stream_;
759 test::FrameGeneratorCapturer* frame_generator_; 756 test::FrameGeneratorCapturer* frame_generator_;
760 VideoEncoderConfig encoder_config_; 757 VideoEncoderConfig encoder_config_;
761 } test; 758 } test;
762 759
763 RunBaseTest(&test); 760 RunBaseTest(&test);
764 } 761 }
765 762
766 } // namespace webrtc 763 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698