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

Side by Side Diff: webrtc/audio/audio_receive_stream_unittest.cc

Issue 2061193002: Remove audio/video distinction for probe packets. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase + feedback Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 std::vector<uint8_t> rtp_packet = CreateRtpHeaderWithOneByteExtension( 272 std::vector<uint8_t> rtp_packet = CreateRtpHeaderWithOneByteExtension(
273 kTransportSequenceNumberId, kTransportSequenceNumberValue, 2); 273 kTransportSequenceNumberId, kTransportSequenceNumberValue, 2);
274 PacketTime packet_time(5678000, 0); 274 PacketTime packet_time(5678000, 0);
275 const size_t kExpectedHeaderLength = 20; 275 const size_t kExpectedHeaderLength = 20;
276 RTPHeaderExtension expected_extension; 276 RTPHeaderExtension expected_extension;
277 expected_extension.hasTransportSequenceNumber = true; 277 expected_extension.hasTransportSequenceNumber = true;
278 expected_extension.transportSequenceNumber = kTransportSequenceNumberValue; 278 expected_extension.transportSequenceNumber = kTransportSequenceNumberValue;
279 EXPECT_CALL(*helper.remote_bitrate_estimator(), 279 EXPECT_CALL(*helper.remote_bitrate_estimator(),
280 IncomingPacket(packet_time.timestamp / 1000, 280 IncomingPacket(packet_time.timestamp / 1000,
281 rtp_packet.size() - kExpectedHeaderLength, 281 rtp_packet.size() - kExpectedHeaderLength,
282 VerifyHeaderExtension(expected_extension), false)) 282 VerifyHeaderExtension(expected_extension)))
283 .Times(1); 283 .Times(1);
284 EXPECT_CALL(*helper.channel_proxy(), 284 EXPECT_CALL(*helper.channel_proxy(),
285 ReceivedRTPPacket(&rtp_packet[0], 285 ReceivedRTPPacket(&rtp_packet[0],
286 rtp_packet.size(), 286 rtp_packet.size(),
287 _)) 287 _))
288 .WillOnce(Return(true)); 288 .WillOnce(Return(true));
289 EXPECT_TRUE( 289 EXPECT_TRUE(
290 recv_stream.DeliverRtp(&rtp_packet[0], rtp_packet.size(), packet_time)); 290 recv_stream.DeliverRtp(&rtp_packet[0], rtp_packet.size(), packet_time));
291 } 291 }
292 292
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 TEST(AudioReceiveStreamTest, SetGain) { 349 TEST(AudioReceiveStreamTest, SetGain) {
350 ConfigHelper helper; 350 ConfigHelper helper;
351 internal::AudioReceiveStream recv_stream( 351 internal::AudioReceiveStream recv_stream(
352 helper.congestion_controller(), helper.config(), helper.audio_state()); 352 helper.congestion_controller(), helper.config(), helper.audio_state());
353 EXPECT_CALL(*helper.channel_proxy(), 353 EXPECT_CALL(*helper.channel_proxy(),
354 SetChannelOutputVolumeScaling(FloatEq(0.765f))); 354 SetChannelOutputVolumeScaling(FloatEq(0.765f)));
355 recv_stream.SetGain(0.765f); 355 recv_stream.SetGain(0.765f);
356 } 356 }
357 } // namespace test 357 } // namespace test
358 } // namespace webrtc 358 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/audio/audio_receive_stream.cc ('k') | webrtc/modules/congestion_controller/congestion_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698