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

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

Issue 1520283006: Move Rent-A-Codec out of CodecManager (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@rac0
Patch Set: review comments Created 5 years 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 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 EXPECT_CALL(mock_encoder, NumChannels()) 1612 EXPECT_CALL(mock_encoder, NumChannels())
1613 .Times(AtLeast(1)) 1613 .Times(AtLeast(1))
1614 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::NumChannels)); 1614 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::NumChannels));
1615 EXPECT_CALL(mock_encoder, RtpTimestampRateHz()) 1615 EXPECT_CALL(mock_encoder, RtpTimestampRateHz())
1616 .Times(AtLeast(1)) 1616 .Times(AtLeast(1))
1617 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::RtpTimestampRateHz)); 1617 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::RtpTimestampRateHz));
1618 EXPECT_CALL(mock_encoder, Num10MsFramesInNextPacket()) 1618 EXPECT_CALL(mock_encoder, Num10MsFramesInNextPacket())
1619 .Times(AtLeast(1)) 1619 .Times(AtLeast(1))
1620 .WillRepeatedly( 1620 .WillRepeatedly(
1621 Invoke(&encoder, &AudioEncoderPcmU::Num10MsFramesInNextPacket)); 1621 Invoke(&encoder, &AudioEncoderPcmU::Num10MsFramesInNextPacket));
1622 EXPECT_CALL(mock_encoder, Max10MsFramesInAPacket())
1623 .Times(AtLeast(1))
1624 .WillRepeatedly(
1625 Invoke(&encoder, &AudioEncoderPcmU::Max10MsFramesInAPacket));
1626 EXPECT_CALL(mock_encoder, GetTargetBitrate()) 1622 EXPECT_CALL(mock_encoder, GetTargetBitrate())
1627 .Times(AtLeast(1)) 1623 .Times(AtLeast(1))
1628 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::GetTargetBitrate)); 1624 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::GetTargetBitrate));
1629 EXPECT_CALL(mock_encoder, EncodeInternal(_, _, _, _)) 1625 EXPECT_CALL(mock_encoder, EncodeInternal(_, _, _, _))
1630 .Times(AtLeast(1)) 1626 .Times(AtLeast(1))
1631 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::EncodeInternal)); 1627 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::EncodeInternal));
1632 EXPECT_CALL(mock_encoder, SetFec(_)) 1628 EXPECT_CALL(mock_encoder, SetFec(_))
1633 .Times(AtLeast(1)) 1629 .Times(AtLeast(1))
1634 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::SetFec)); 1630 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::SetFec));
1635 ASSERT_NO_FATAL_FAILURE( 1631 ASSERT_NO_FATAL_FAILURE(
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 Run(16000, 8000, 1000); 1747 Run(16000, 8000, 1000);
1752 } 1748 }
1753 1749
1754 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { 1750 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) {
1755 Run(8000, 16000, 1000); 1751 Run(8000, 16000, 1000);
1756 } 1752 }
1757 1753
1758 #endif 1754 #endif
1759 1755
1760 } // namespace webrtc 1756 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/audio_coding_module_impl.cc ('k') | webrtc/modules/audio_coding/acm2/codec_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698