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

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

Issue 1764583003: Renamed new EncodeInternal to EncodeImpl to ensure proper backwards compatibility. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Clarified doc comments in AudioEncoder. Created 4 years, 9 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 | webrtc/modules/audio_coding/acm2/rent_a_codec_unittest.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 10
(...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1641 EXPECT_CALL(mock_encoder, RtpTimestampRateHz()) 1641 EXPECT_CALL(mock_encoder, RtpTimestampRateHz())
1642 .Times(AtLeast(1)) 1642 .Times(AtLeast(1))
1643 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::RtpTimestampRateHz)); 1643 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::RtpTimestampRateHz));
1644 EXPECT_CALL(mock_encoder, Num10MsFramesInNextPacket()) 1644 EXPECT_CALL(mock_encoder, Num10MsFramesInNextPacket())
1645 .Times(AtLeast(1)) 1645 .Times(AtLeast(1))
1646 .WillRepeatedly( 1646 .WillRepeatedly(
1647 Invoke(&encoder, &AudioEncoderPcmU::Num10MsFramesInNextPacket)); 1647 Invoke(&encoder, &AudioEncoderPcmU::Num10MsFramesInNextPacket));
1648 EXPECT_CALL(mock_encoder, GetTargetBitrate()) 1648 EXPECT_CALL(mock_encoder, GetTargetBitrate())
1649 .Times(AtLeast(1)) 1649 .Times(AtLeast(1))
1650 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::GetTargetBitrate)); 1650 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::GetTargetBitrate));
1651 EXPECT_CALL(mock_encoder, EncodeInternal(_, _, _)) 1651 EXPECT_CALL(mock_encoder, EncodeImpl(_, _, _))
1652 .Times(AtLeast(1)) 1652 .Times(AtLeast(1))
1653 .WillRepeatedly(Invoke(&encoder, 1653 .WillRepeatedly(Invoke(&encoder,
1654 static_cast< 1654 static_cast<
1655 AudioEncoder::EncodedInfo(AudioEncoder::*)( 1655 AudioEncoder::EncodedInfo(AudioEncoder::*)(
1656 uint32_t, 1656 uint32_t,
1657 rtc::ArrayView<const int16_t>, 1657 rtc::ArrayView<const int16_t>,
1658 rtc::Buffer*)>(&AudioEncoderPcmU::Encode))); 1658 rtc::Buffer*)>(&AudioEncoderPcmU::Encode)));
1659 EXPECT_CALL(mock_encoder, SetFec(_)) 1659 EXPECT_CALL(mock_encoder, SetFec(_))
1660 .Times(AtLeast(1)) 1660 .Times(AtLeast(1))
1661 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::SetFec)); 1661 .WillRepeatedly(Invoke(&encoder, &AudioEncoderPcmU::SetFec));
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 Run(16000, 8000, 1000); 1778 Run(16000, 8000, 1000);
1779 } 1779 }
1780 1780
1781 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { 1781 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) {
1782 Run(8000, 16000, 1000); 1782 Run(8000, 16000, 1000);
1783 } 1783 }
1784 1784
1785 #endif 1785 #endif
1786 1786
1787 } // namespace webrtc 1787 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/acm2/rent_a_codec_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698