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

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

Issue 2158293003: Update tests and DTX check for Opus 1.1.3. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add expected result on Android arm64 to Opus bitrate test Created 4 years, 4 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
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/opus/opus_interface.c » ('j') | 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) 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 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 "7190ee718ab3d80eca181e5f7140c210", "android_arm32_audio", 1411 "7190ee718ab3d80eca181e5f7140c210", "android_arm32_audio",
1412 "android_arm64_audio"), 1412 "android_arm64_audio"),
1413 AcmReceiverBitExactnessOldApi::PlatformChecksum( 1413 AcmReceiverBitExactnessOldApi::PlatformChecksum(
1414 "66516152eeaa1e650ad94ff85f668dac", 1414 "66516152eeaa1e650ad94ff85f668dac",
1415 "66516152eeaa1e650ad94ff85f668dac", "android_arm32_payload", 1415 "66516152eeaa1e650ad94ff85f668dac", "android_arm32_payload",
1416 "android_arm64_payload"), 1416 "android_arm64_payload"),
1417 50, test::AcmReceiveTestOldApi::kStereoOutput); 1417 50, test::AcmReceiveTestOldApi::kStereoOutput);
1418 } 1418 }
1419 #endif 1419 #endif
1420 1420
1421 TEST_F(AcmSenderBitExactnessOldApi, DISABLED_Opus_stereo_20ms) { 1421 TEST_F(AcmSenderBitExactnessOldApi, Opus_stereo_20ms) {
1422 ASSERT_NO_FATAL_FAILURE(SetUpTest("opus", 48000, 2, 120, 960, 960)); 1422 ASSERT_NO_FATAL_FAILURE(SetUpTest("opus", 48000, 2, 120, 960, 960));
1423 Run(AcmReceiverBitExactnessOldApi::PlatformChecksum( 1423 Run(AcmReceiverBitExactnessOldApi::PlatformChecksum(
1424 "855041f2490b887302bce9d544731849", 1424 "855041f2490b887302bce9d544731849",
1425 "855041f2490b887302bce9d544731849", 1425 "855041f2490b887302bce9d544731849",
1426 "9692eede45638eb425e0daf9c75b5c7a", 1426 "9692eede45638eb425e0daf9c75b5c7a",
1427 "c4faa472fbb0730370aaf34920381a09"), 1427 "86d3552bb3492247f965cdd0e88a1c82"),
1428 AcmReceiverBitExactnessOldApi::PlatformChecksum( 1428 AcmReceiverBitExactnessOldApi::PlatformChecksum(
1429 "d781cce1ab986b618d0da87226cdde30", 1429 "d781cce1ab986b618d0da87226cdde30",
1430 "d781cce1ab986b618d0da87226cdde30", 1430 "d781cce1ab986b618d0da87226cdde30",
1431 "8d6782b905c3230d4b0e3e83e1fc3439", 1431 "8d6782b905c3230d4b0e3e83e1fc3439",
1432 "8b0126eab82d9e4e367ab33ded2f1a8e"), 1432 "798347a685fac7d0c2d8f748ffe66881"),
1433 50, test::AcmReceiveTestOldApi::kStereoOutput); 1433 50, test::AcmReceiveTestOldApi::kStereoOutput);
1434 } 1434 }
1435 1435
1436 TEST_F(AcmSenderBitExactnessOldApi, DISABLED_Opus_stereo_20ms_voip) { 1436 TEST_F(AcmSenderBitExactnessOldApi, Opus_stereo_20ms_voip) {
1437 ASSERT_NO_FATAL_FAILURE(SetUpTest("opus", 48000, 2, 120, 960, 960)); 1437 ASSERT_NO_FATAL_FAILURE(SetUpTest("opus", 48000, 2, 120, 960, 960));
1438 // If not set, default will be kAudio in case of stereo. 1438 // If not set, default will be kAudio in case of stereo.
1439 EXPECT_EQ(0, send_test_->acm()->SetOpusApplication(kVoip)); 1439 EXPECT_EQ(0, send_test_->acm()->SetOpusApplication(kVoip));
1440 Run(AcmReceiverBitExactnessOldApi::PlatformChecksum( 1440 Run(AcmReceiverBitExactnessOldApi::PlatformChecksum(
1441 "9b9e12bc3cc793740966e11cbfa8b35b", 1441 "9b9e12bc3cc793740966e11cbfa8b35b",
1442 "9b9e12bc3cc793740966e11cbfa8b35b", 1442 "9b9e12bc3cc793740966e11cbfa8b35b",
1443 "0de6249018fdd316c21086db84e10610", 1443 "0de6249018fdd316c21086db84e10610",
1444 "fd21a19b6b1e891f5daea6c4a299c254"), 1444 "9c4cb69db77b85841a5f8225bb8f508b"),
1445 AcmReceiverBitExactnessOldApi::PlatformChecksum( 1445 AcmReceiverBitExactnessOldApi::PlatformChecksum(
1446 "c7340b1189652ab6b5e80dade7390cb4", 1446 "c7340b1189652ab6b5e80dade7390cb4",
1447 "c7340b1189652ab6b5e80dade7390cb4", 1447 "c7340b1189652ab6b5e80dade7390cb4",
1448 "95612864c954ee63e28cc6eebad56626", 1448 "95612864c954ee63e28cc6eebad56626",
1449 "49954b0d5a5f705a8798e7071b0c6f36"), 1449 "ae33ea2e43407cf9ebdabbbd6ca912a3"),
1450 50, test::AcmReceiveTestOldApi::kStereoOutput); 1450 50, test::AcmReceiveTestOldApi::kStereoOutput);
1451 } 1451 }
1452 1452
1453 // This test is for verifying the SetBitRate function. The bitrate is changed at 1453 // This test is for verifying the SetBitRate function. The bitrate is changed at
1454 // the beginning, and the number of generated bytes are checked. 1454 // the beginning, and the number of generated bytes are checked.
1455 class AcmSetBitRateOldApi : public ::testing::Test { 1455 class AcmSetBitRateOldApi : public ::testing::Test {
1456 protected: 1456 protected:
1457 static const int kTestDurationMs = 1000; 1457 static const int kTestDurationMs = 1000;
1458 1458
1459 // Sets up the test::AcmSendTest object. Returns true on success, otherwise 1459 // Sets up the test::AcmSendTest object. Returns true on success, otherwise
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 1614
1615 TEST_F(AcmChangeBitRateOldApi, Opus_48khz_20ms_50kbps) { 1615 TEST_F(AcmChangeBitRateOldApi, Opus_48khz_20ms_50kbps) {
1616 ASSERT_NO_FATAL_FAILURE(SetUpTest("opus", 48000, 1, 107, 960, 960)); 1616 ASSERT_NO_FATAL_FAILURE(SetUpTest("opus", 48000, 1, 107, 960, 960));
1617 #if defined(WEBRTC_ANDROID) 1617 #if defined(WEBRTC_ANDROID)
1618 Run(50000, 32200, 24768); 1618 Run(50000, 32200, 24768);
1619 #else 1619 #else
1620 Run(50000, 32200, 24848); 1620 Run(50000, 32200, 24848);
1621 #endif // WEBRTC_ANDROID 1621 #endif // WEBRTC_ANDROID
1622 } 1622 }
1623 1623
1624 TEST_F(AcmChangeBitRateOldApi, DISABLED_Opus_48khz_20ms_100kbps) { 1624 TEST_F(AcmChangeBitRateOldApi, Opus_48khz_20ms_100kbps) {
1625 ASSERT_NO_FATAL_FAILURE(SetUpTest("opus", 48000, 1, 107, 960, 960)); 1625 ASSERT_NO_FATAL_FAILURE(SetUpTest("opus", 48000, 1, 107, 960, 960));
1626 #if defined(WEBRTC_ANDROID) 1626 #if defined(WEBRTC_ANDROID)
1627 Run(100000, 32200, 51480); 1627 #if defined(WEBRTC_ARCH_ARM64)
1628 Run(100000, 32200, 51152);
1629 #else
1630 Run(100000, 32200, 51248);
1631 #endif // WEBRTC_ARCH_ARM64
1628 #else 1632 #else
1629 Run(100000, 32200, 50584); 1633 Run(100000, 32200, 50584);
1630 #endif // WEBRTC_ANDROID 1634 #endif // WEBRTC_ANDROID
1631 } 1635 }
1632 1636
1633 // These next 2 tests ensure that the SetBitRate function has no effect on PCM 1637 // These next 2 tests ensure that the SetBitRate function has no effect on PCM
1634 TEST_F(AcmChangeBitRateOldApi, Pcm16_8khz_10ms_8kbps) { 1638 TEST_F(AcmChangeBitRateOldApi, Pcm16_8khz_10ms_8kbps) {
1635 ASSERT_NO_FATAL_FAILURE(SetUpTest("L16", 8000, 1, 107, 80, 80)); 1639 ASSERT_NO_FATAL_FAILURE(SetUpTest("L16", 8000, 1, 107, 80, 80));
1636 Run(8000, 64000, 64000); 1640 Run(8000, 64000, 64000);
1637 } 1641 }
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 Run(16000, 8000, 1000); 1801 Run(16000, 8000, 1000);
1798 } 1802 }
1799 1803
1800 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) { 1804 TEST_F(AcmSwitchingOutputFrequencyOldApi, Toggle8KhzTo16Khz) {
1801 Run(8000, 16000, 1000); 1805 Run(8000, 16000, 1000);
1802 } 1806 }
1803 1807
1804 #endif 1808 #endif
1805 1809
1806 } // namespace webrtc 1810 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_coding/codecs/opus/opus_interface.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698