Chromium Code Reviews

Side by Side Diff: webrtc/modules/audio_coding/neteq/audio_decoder_unittest.cc

Issue 1512833003: Special-case android-arm64 in codec bitexactness tests (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: review nit Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 548 matching lines...)
559 int delay = 160; // Delay from input to output. 559 int delay = 160; // Delay from input to output.
560 EncodeDecodeTest(0, tolerance, mse, delay); 560 EncodeDecodeTest(0, tolerance, mse, delay);
561 ReInitTest(); 561 ReInitTest();
562 EXPECT_FALSE(decoder_->HasDecodePlc()); 562 EXPECT_FALSE(decoder_->HasDecodePlc());
563 } 563 }
564 564
565 TEST_F(AudioDecoderIsacSwbTest, SetTargetBitrate) { 565 TEST_F(AudioDecoderIsacSwbTest, SetTargetBitrate) {
566 TestSetAndGetTargetBitratesWithFixedCodec(audio_encoder_.get(), 32000); 566 TestSetAndGetTargetBitratesWithFixedCodec(audio_encoder_.get(), 32000);
567 } 567 }
568 568
569 // Fails Android ARM64. https://code.google.com/p/webrtc/issues/detail?id=4198 569 TEST_F(AudioDecoderIsacFixTest, EncodeDecode) {
570 #if defined(WEBRTC_ANDROID) && defined(WEBRTC_ARCH_ARM64)
571 #define MAYBE_EncodeDecode DISABLED_EncodeDecode
572 #else
573 #define MAYBE_EncodeDecode EncodeDecode
574 #endif
575 TEST_F(AudioDecoderIsacFixTest, MAYBE_EncodeDecode) {
576 int tolerance = 11034; 570 int tolerance = 11034;
577 double mse = 3.46e6; 571 double mse = 3.46e6;
578 int delay = 54; // Delay from input to output. 572 int delay = 54; // Delay from input to output.
579 #ifdef WEBRTC_ANDROID 573 #if defined(WEBRTC_ANDROID) && defined(WEBRTC_ARCH_ARM)
580 static const int kEncodedBytes = 685; 574 static const int kEncodedBytes = 685;
575 #elif defined(WEBRTC_ANDROID) && defined(WEBRTC_ARCH_ARM64)
576 static const int kEncodedBytes = 673;
581 #else 577 #else
582 static const int kEncodedBytes = 671; 578 static const int kEncodedBytes = 671;
583 #endif 579 #endif
584 EncodeDecodeTest(kEncodedBytes, tolerance, mse, delay); 580 EncodeDecodeTest(kEncodedBytes, tolerance, mse, delay);
585 ReInitTest(); 581 ReInitTest();
586 EXPECT_FALSE(decoder_->HasDecodePlc()); 582 EXPECT_FALSE(decoder_->HasDecodePlc());
587 } 583 }
588 584
589 TEST_F(AudioDecoderIsacFixTest, SetTargetBitrate) { 585 TEST_F(AudioDecoderIsacFixTest, SetTargetBitrate) {
590 TestSetAndGetTargetBitratesWithFixedCodec(audio_encoder_.get(), 32000); 586 TestSetAndGetTargetBitratesWithFixedCodec(audio_encoder_.get(), 32000);
(...skipping 155 matching lines...)
746 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGnb)); 742 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGnb));
747 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGwb)); 743 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGwb));
748 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb32kHz)); 744 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb32kHz));
749 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb48kHz)); 745 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb48kHz));
750 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderArbitrary)); 746 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderArbitrary));
751 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus)); 747 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus));
752 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus_2ch)); 748 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus_2ch));
753 } 749 }
754 750
755 } // namespace webrtc 751 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine