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

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

Issue 1353803002: Simple cleanups of AudioDecoder and AudioEncoder classes (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@dmove-isac
Patch Set: rebase Created 5 years, 3 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
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 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 std::vector<ExternalDecoder>()); 978 std::vector<ExternalDecoder>());
979 } 979 }
980 980
981 // Fails Android ARM64. https://code.google.com/p/webrtc/issues/detail?id=4199 981 // Fails Android ARM64. https://code.google.com/p/webrtc/issues/detail?id=4199
982 #if defined(WEBRTC_ANDROID) && defined(__aarch64__) 982 #if defined(WEBRTC_ANDROID) && defined(__aarch64__)
983 #define MAYBE_48kHzOutputExternalDecoder DISABLED_48kHzOutputExternalDecoder 983 #define MAYBE_48kHzOutputExternalDecoder DISABLED_48kHzOutputExternalDecoder
984 #else 984 #else
985 #define MAYBE_48kHzOutputExternalDecoder 48kHzOutputExternalDecoder 985 #define MAYBE_48kHzOutputExternalDecoder 48kHzOutputExternalDecoder
986 #endif 986 #endif
987 TEST_F(AcmReceiverBitExactnessOldApi, MAYBE_48kHzOutputExternalDecoder) { 987 TEST_F(AcmReceiverBitExactnessOldApi, MAYBE_48kHzOutputExternalDecoder) {
988 AudioDecoderPcmU decoder; 988 AudioDecoderPcmU decoder(1);
989 MockAudioDecoder mock_decoder; 989 MockAudioDecoder mock_decoder;
990 // Set expectations on the mock decoder and also delegate the calls to the 990 // Set expectations on the mock decoder and also delegate the calls to the
991 // real decoder. 991 // real decoder.
992 EXPECT_CALL(mock_decoder, IncomingPacket(_, _, _, _, _)) 992 EXPECT_CALL(mock_decoder, IncomingPacket(_, _, _, _, _))
993 .Times(AtLeast(1)) 993 .Times(AtLeast(1))
994 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::IncomingPacket)); 994 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::IncomingPacket));
995 EXPECT_CALL(mock_decoder, Channels()) 995 EXPECT_CALL(mock_decoder, Channels())
996 .Times(AtLeast(1)) 996 .Times(AtLeast(1))
997 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Channels)); 997 .WillRepeatedly(Invoke(&decoder, &AudioDecoderPcmU::Channels));
998 EXPECT_CALL(mock_decoder, Decode(_, _, _, _, _, _)) 998 EXPECT_CALL(mock_decoder, Decode(_, _, _, _, _, _))
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 Run(16000, 8000, 1000); 1748 Run(16000, 8000, 1000);
1749 } 1749 }
1750 1750
1751 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { 1751 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) {
1752 Run(8000, 16000, 1000); 1752 Run(8000, 16000, 1000);
1753 } 1753 }
1754 1754
1755 #endif 1755 #endif
1756 1756
1757 } // namespace webrtc 1757 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698