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

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

Issue 2266293005: NetEq: Update CNG code to accommodate 48 kHz sample rate (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@neteq-fuzz-fix2
Patch Set: Fixing android arm64 checksums Created 4 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) 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 !defined(WEBRTC_ARCH_ARM64) 454 !defined(WEBRTC_ARCH_ARM64)
455 #define MAYBE_TestBitExactness TestBitExactness 455 #define MAYBE_TestBitExactness TestBitExactness
456 #else 456 #else
457 #define MAYBE_TestBitExactness DISABLED_TestBitExactness 457 #define MAYBE_TestBitExactness DISABLED_TestBitExactness
458 #endif 458 #endif
459 TEST_F(NetEqDecodingTest, MAYBE_TestBitExactness) { 459 TEST_F(NetEqDecodingTest, MAYBE_TestBitExactness) {
460 const std::string input_rtp_file = 460 const std::string input_rtp_file =
461 webrtc::test::ResourcePath("audio_coding/neteq_universal_new", "rtp"); 461 webrtc::test::ResourcePath("audio_coding/neteq_universal_new", "rtp");
462 462
463 const std::string output_checksum = PlatformChecksum( 463 const std::string output_checksum = PlatformChecksum(
464 "472ebe1126f41fdb6b5c63c87f625a52e7604e49", 464 "acd33f5c73625c1529c412ad59b5565132826f1b",
465 "36f6fc87c05de077e998173b46b83524de5e8fc2", 465 "1a2e82a0410421c1d1d3eb0615334db5e2c63784",
466 "472ebe1126f41fdb6b5c63c87f625a52e7604e49", 466 "acd33f5c73625c1529c412ad59b5565132826f1b",
467 "f9749813dbc3fb59dae761de518fec65b8407c5b"); 467 "52797b781758a1d2303140b80b9c5030c9093d6b");
468 468
469 const std::string network_stats_checksum = PlatformChecksum( 469 const std::string network_stats_checksum = PlatformChecksum(
470 "2cf380a05ee07080bd72471e8ec7777a39644ec9", 470 "9c5bb9e74a583be89313b158a19ea10d41bf9de6",
471 "f50795e25ec2bab2d418c694ab088012776fd450", 471 "e948ec65cf18852ba2a197189a3186635db34c3b",
472 "2cf380a05ee07080bd72471e8ec7777a39644ec9", 472 "9c5bb9e74a583be89313b158a19ea10d41bf9de6",
473 "2cf380a05ee07080bd72471e8ec7777a39644ec9"); 473 "9c5bb9e74a583be89313b158a19ea10d41bf9de6");
474 474
475 const std::string rtcp_stats_checksum = PlatformChecksum( 475 const std::string rtcp_stats_checksum = PlatformChecksum(
476 "b8880bf9fed2487efbddcb8d94b9937a29ae521d", 476 "b8880bf9fed2487efbddcb8d94b9937a29ae521d",
477 "f3f7b3d3e71d7e635240b5373b57df6a7e4ce9d4", 477 "f3f7b3d3e71d7e635240b5373b57df6a7e4ce9d4",
478 "b8880bf9fed2487efbddcb8d94b9937a29ae521d", 478 "b8880bf9fed2487efbddcb8d94b9937a29ae521d",
479 "b8880bf9fed2487efbddcb8d94b9937a29ae521d"); 479 "b8880bf9fed2487efbddcb8d94b9937a29ae521d");
480 480
481 DecodeAndCompare(input_rtp_file, 481 DecodeAndCompare(input_rtp_file,
482 output_checksum, 482 output_checksum,
483 network_stats_checksum, 483 network_stats_checksum,
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1782 if (muted) { 1782 if (muted) {
1783 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); 1783 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2));
1784 } else { 1784 } else {
1785 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); 1785 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2));
1786 } 1786 }
1787 } 1787 }
1788 EXPECT_FALSE(muted); 1788 EXPECT_FALSE(muted);
1789 } 1789 }
1790 1790
1791 } // namespace webrtc 1791 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc ('k') | webrtc/modules/audio_coding/neteq/normal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698