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

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

Issue 1319683002: AudioDecoder: Replace Init() with Reset() (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@buffer
Patch Set: review fixes 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 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/opus/opus_unittest.cc ('k') | webrtc/modules/audio_coding/main/test/opus_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698