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

Side by Side Diff: webrtc/modules/audio_coding/neteq/neteq_unittest.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 | « webrtc/modules/audio_coding/codecs/opus/opus_interface.c ('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) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 FLAGS_gen_ref); 485 FLAGS_gen_ref);
486 } 486 }
487 487
488 #if !defined(WEBRTC_IOS) && !defined(WEBRTC_ANDROID) && \ 488 #if !defined(WEBRTC_IOS) && !defined(WEBRTC_ANDROID) && \
489 defined(WEBRTC_NETEQ_UNITTEST_BITEXACT) && \ 489 defined(WEBRTC_NETEQ_UNITTEST_BITEXACT) && \
490 defined(WEBRTC_CODEC_OPUS) 490 defined(WEBRTC_CODEC_OPUS)
491 #define MAYBE_TestOpusBitExactness TestOpusBitExactness 491 #define MAYBE_TestOpusBitExactness TestOpusBitExactness
492 #else 492 #else
493 #define MAYBE_TestOpusBitExactness DISABLED_TestOpusBitExactness 493 #define MAYBE_TestOpusBitExactness DISABLED_TestOpusBitExactness
494 #endif 494 #endif
495 TEST_F(NetEqDecodingTest, DISABLED_TestOpusBitExactness) { 495 TEST_F(NetEqDecodingTest, MAYBE_TestOpusBitExactness) {
496 const std::string input_rtp_file = 496 const std::string input_rtp_file =
497 webrtc::test::ResourcePath("audio_coding/neteq_opus", "rtp"); 497 webrtc::test::ResourcePath("audio_coding/neteq_opus", "rtp");
498 498
499 const std::string output_checksum = PlatformChecksum( 499 const std::string output_checksum = PlatformChecksum(
500 "19ad24b4a1eb7a9620e6da09f98c49aa5792ade4", 500 "9d7d52bc94e941d106aa518f324f16a58d231586",
501 "19ad24b4a1eb7a9620e6da09f98c49aa5792ade4", 501 "9d7d52bc94e941d106aa518f324f16a58d231586",
502 "19ad24b4a1eb7a9620e6da09f98c49aa5792ade4", 502 "9d7d52bc94e941d106aa518f324f16a58d231586",
503 "19ad24b4a1eb7a9620e6da09f98c49aa5792ade4"); 503 "9d7d52bc94e941d106aa518f324f16a58d231586");
504 504
505 const std::string network_stats_checksum = PlatformChecksum( 505 const std::string network_stats_checksum = PlatformChecksum(
506 "6eab76efbde753d4dde38983445ca16b4ce59b39", 506 "191af29ed3b8b6dd4c4cc94dc3f33bdf48f055ef",
507 "6eab76efbde753d4dde38983445ca16b4ce59b39", 507 "191af29ed3b8b6dd4c4cc94dc3f33bdf48f055ef",
508 "6eab76efbde753d4dde38983445ca16b4ce59b39", 508 "191af29ed3b8b6dd4c4cc94dc3f33bdf48f055ef",
509 "6eab76efbde753d4dde38983445ca16b4ce59b39"); 509 "191af29ed3b8b6dd4c4cc94dc3f33bdf48f055ef");
510 510
511 const std::string rtcp_stats_checksum = PlatformChecksum( 511 const std::string rtcp_stats_checksum = PlatformChecksum(
512 "e37c797e3de6a64dda88c9ade7a013d022a2e1e0", 512 "e37c797e3de6a64dda88c9ade7a013d022a2e1e0",
513 "e37c797e3de6a64dda88c9ade7a013d022a2e1e0", 513 "e37c797e3de6a64dda88c9ade7a013d022a2e1e0",
514 "e37c797e3de6a64dda88c9ade7a013d022a2e1e0", 514 "e37c797e3de6a64dda88c9ade7a013d022a2e1e0",
515 "e37c797e3de6a64dda88c9ade7a013d022a2e1e0"); 515 "e37c797e3de6a64dda88c9ade7a013d022a2e1e0");
516 516
517 DecodeAndCompare(input_rtp_file, 517 DecodeAndCompare(input_rtp_file,
518 output_checksum, 518 output_checksum,
519 network_stats_checksum, 519 network_stats_checksum,
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1779 if (muted) { 1779 if (muted) {
1780 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); 1780 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2));
1781 } else { 1781 } else {
1782 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); 1782 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2));
1783 } 1783 }
1784 } 1784 }
1785 EXPECT_FALSE(muted); 1785 EXPECT_FALSE(muted);
1786 } 1786 }
1787 1787
1788 } // namespace webrtc 1788 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/codecs/opus/opus_interface.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698