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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 #if defined(WEBRTC_ANDROID) && defined(__aarch64__) | 981 #if defined(WEBRTC_ANDROID) && defined(__aarch64__) |
982 #define MAYBE_48kHzOutputExternalDecoder DISABLED_48kHzOutputExternalDecoder | 982 #define MAYBE_48kHzOutputExternalDecoder DISABLED_48kHzOutputExternalDecoder |
983 #else | 983 #else |
984 #define MAYBE_48kHzOutputExternalDecoder 48kHzOutputExternalDecoder | 984 #define MAYBE_48kHzOutputExternalDecoder 48kHzOutputExternalDecoder |
985 #endif | 985 #endif |
986 TEST_F(AcmReceiverBitExactnessOldApi, MAYBE_48kHzOutputExternalDecoder) { | 986 TEST_F(AcmReceiverBitExactnessOldApi, MAYBE_48kHzOutputExternalDecoder) { |
987 AudioDecoderPcmU decoder; | 987 AudioDecoderPcmU decoder; |
988 MockAudioDecoder mock_decoder; | 988 MockAudioDecoder mock_decoder; |
989 // Set expectations on the mock decoder and also delegate the calls to the | 989 // Set expectations on the mock decoder and also delegate the calls to the |
990 // real decoder. | 990 // real decoder. |
991 EXPECT_CALL(mock_decoder, Init()) | |
992 .Times(AtLeast(1)) | |
993 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Init)); | |
994 EXPECT_CALL(mock_decoder, IncomingPacket(_, _, _, _, _)) | 991 EXPECT_CALL(mock_decoder, IncomingPacket(_, _, _, _, _)) |
995 .Times(AtLeast(1)) | 992 .Times(AtLeast(1)) |
996 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::IncomingPacket)); | 993 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::IncomingPacket)); |
997 EXPECT_CALL(mock_decoder, Channels()) | 994 EXPECT_CALL(mock_decoder, Channels()) |
998 .Times(AtLeast(1)) | 995 .Times(AtLeast(1)) |
999 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Channels)); | 996 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Channels)); |
1000 EXPECT_CALL(mock_decoder, Decode(_, _, _, _, _, _)) | 997 EXPECT_CALL(mock_decoder, Decode(_, _, _, _, _, _)) |
1001 .Times(AtLeast(1)) | 998 .Times(AtLeast(1)) |
1002 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Decode)); | 999 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Decode)); |
1003 EXPECT_CALL(mock_decoder, HasDecodePlc()) | 1000 EXPECT_CALL(mock_decoder, HasDecodePlc()) |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 Run(16000, 8000, 1000); | 1744 Run(16000, 8000, 1000); |
1748 } | 1745 } |
1749 | 1746 |
1750 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { | 1747 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { |
1751 Run(8000, 16000, 1000); | 1748 Run(8000, 16000, 1000); |
1752 } | 1749 } |
1753 | 1750 |
1754 #endif | 1751 #endif |
1755 | 1752 |
1756 } // namespace webrtc | 1753 } // namespace webrtc |
OLD | NEW |