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 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |