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

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

Issue 2571483002: Fix for integer overflow in NetEq. (Closed)
Patch Set: More comments. Created 4 years 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/neteq/expand.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) 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 !defined(WEBRTC_ARCH_ARM64) 435 !defined(WEBRTC_ARCH_ARM64)
436 #define MAYBE_TestBitExactness TestBitExactness 436 #define MAYBE_TestBitExactness TestBitExactness
437 #else 437 #else
438 #define MAYBE_TestBitExactness DISABLED_TestBitExactness 438 #define MAYBE_TestBitExactness DISABLED_TestBitExactness
439 #endif 439 #endif
440 TEST_F(NetEqDecodingTest, MAYBE_TestBitExactness) { 440 TEST_F(NetEqDecodingTest, MAYBE_TestBitExactness) {
441 const std::string input_rtp_file = 441 const std::string input_rtp_file =
442 webrtc::test::ResourcePath("audio_coding/neteq_universal_new", "rtp"); 442 webrtc::test::ResourcePath("audio_coding/neteq_universal_new", "rtp");
443 443
444 const std::string output_checksum = PlatformChecksum( 444 const std::string output_checksum = PlatformChecksum(
445 "acd33f5c73625c1529c412ad59b5565132826f1b", 445 "5a8184bc60c0d7dddb50af8966360675476a8d8b",
446 "1a2e82a0410421c1d1d3eb0615334db5e2c63784", 446 "be982d2c5685dd1ca4ea5d352283df50e8e5b46d",
447 "acd33f5c73625c1529c412ad59b5565132826f1b", 447 "5a8184bc60c0d7dddb50af8966360675476a8d8b",
448 "52797b781758a1d2303140b80b9c5030c9093d6b"); 448 "c86aec95439748f4949de95b50c94be291118615");
449 449
450 const std::string network_stats_checksum = PlatformChecksum( 450 const std::string network_stats_checksum = PlatformChecksum(
451 "f59b3dfdb9b1b8bbb61abedd7c8cf3fc47c21f5f", 451 "f59b3dfdb9b1b8bbb61abedd7c8cf3fc47c21f5f",
452 "c8b2a93842e48d014f7e6efe10ae96cb3892b129", 452 "c8b2a93842e48d014f7e6efe10ae96cb3892b129",
453 "f59b3dfdb9b1b8bbb61abedd7c8cf3fc47c21f5f", 453 "f59b3dfdb9b1b8bbb61abedd7c8cf3fc47c21f5f",
454 "f59b3dfdb9b1b8bbb61abedd7c8cf3fc47c21f5f"); 454 "f59b3dfdb9b1b8bbb61abedd7c8cf3fc47c21f5f");
455 455
456 const std::string rtcp_stats_checksum = PlatformChecksum( 456 const std::string rtcp_stats_checksum = PlatformChecksum(
457 "b8880bf9fed2487efbddcb8d94b9937a29ae521d", 457 "b8880bf9fed2487efbddcb8d94b9937a29ae521d",
458 "f3f7b3d3e71d7e635240b5373b57df6a7e4ce9d4", 458 "f3f7b3d3e71d7e635240b5373b57df6a7e4ce9d4",
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1581 if (muted) { 1581 if (muted) {
1582 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); 1582 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2));
1583 } else { 1583 } else {
1584 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); 1584 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2));
1585 } 1585 }
1586 } 1586 }
1587 EXPECT_FALSE(muted); 1587 EXPECT_FALSE(muted);
1588 } 1588 }
1589 1589
1590 } // namespace webrtc 1590 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/expand.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698