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

Side by Side Diff: webrtc/modules/audio_coding/main/acm2/audio_coding_module_unittest_oldapi.cc

Issue 1324453002: NetEq: Fixing a corner case with depleted sync buffer (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 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) 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 10
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::IncomingPacket)); 993 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::IncomingPacket));
994 EXPECT_CALL(mock_decoder, Channels()) 994 EXPECT_CALL(mock_decoder, Channels())
995 .Times(AtLeast(1)) 995 .Times(AtLeast(1))
996 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Channels)); 996 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Channels));
997 EXPECT_CALL(mock_decoder, Decode(_, _, _, _, _, _)) 997 EXPECT_CALL(mock_decoder, Decode(_, _, _, _, _, _))
998 .Times(AtLeast(1)) 998 .Times(AtLeast(1))
999 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Decode)); 999 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Decode));
1000 EXPECT_CALL(mock_decoder, HasDecodePlc()) 1000 EXPECT_CALL(mock_decoder, HasDecodePlc())
1001 .Times(AtLeast(1)) 1001 .Times(AtLeast(1))
1002 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::HasDecodePlc)); 1002 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::HasDecodePlc));
1003 EXPECT_CALL(mock_decoder, PacketDuration(_, _))
1004 .Times(AtLeast(1))
1005 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::PacketDuration));
1003 ExternalDecoder ed; 1006 ExternalDecoder ed;
1004 ed.rtp_payload_type = 0; 1007 ed.rtp_payload_type = 0;
1005 ed.external_decoder = &mock_decoder; 1008 ed.external_decoder = &mock_decoder;
1006 ed.sample_rate_hz = 8000; 1009 ed.sample_rate_hz = 8000;
1007 ed.num_channels = 1; 1010 ed.num_channels = 1;
1008 std::vector<ExternalDecoder> external_decoders; 1011 std::vector<ExternalDecoder> external_decoders;
1009 external_decoders.push_back(ed); 1012 external_decoders.push_back(ed);
1010 1013
1011 Run(48000, PlatformChecksum("aa7c232f63a67b2a72703593bdd172e0", 1014 Run(48000, PlatformChecksum("aa7c232f63a67b2a72703593bdd172e0",
1012 "0155665e93067c4e89256b944dd11999", 1015 "0155665e93067c4e89256b944dd11999",
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 Run(16000, 8000, 1000); 1747 Run(16000, 8000, 1000);
1745 } 1748 }
1746 1749
1747 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { 1750 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) {
1748 Run(8000, 16000, 1000); 1751 Run(8000, 16000, 1000);
1749 } 1752 }
1750 1753
1751 #endif 1754 #endif
1752 1755
1753 } // namespace webrtc 1756 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698