| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |