OLD | NEW |
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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 461 |
462 DecodeAndCompare(input_rtp_file, | 462 DecodeAndCompare(input_rtp_file, |
463 output_checksum, | 463 output_checksum, |
464 network_stats_checksum, | 464 network_stats_checksum, |
465 rtcp_stats_checksum, | 465 rtcp_stats_checksum, |
466 FLAGS_gen_ref); | 466 FLAGS_gen_ref); |
467 } | 467 } |
468 | 468 |
469 #if !defined(WEBRTC_IOS) && !defined(WEBRTC_ANDROID) && \ | 469 #if !defined(WEBRTC_IOS) && !defined(WEBRTC_ANDROID) && \ |
470 defined(WEBRTC_NETEQ_UNITTEST_BITEXACT) && \ | 470 defined(WEBRTC_NETEQ_UNITTEST_BITEXACT) && \ |
471 defined(WEBRTC_CODEC_OPUS) | 471 defined(WEBRTC_CODEC_OPUS) && \ |
| 472 !WEBRTC_OPUS_SUPPORT_120MS_PTIME |
472 #define MAYBE_TestOpusBitExactness TestOpusBitExactness | 473 #define MAYBE_TestOpusBitExactness TestOpusBitExactness |
473 #else | 474 #else |
474 #define MAYBE_TestOpusBitExactness DISABLED_TestOpusBitExactness | 475 #define MAYBE_TestOpusBitExactness DISABLED_TestOpusBitExactness |
475 #endif | 476 #endif |
476 TEST_F(NetEqDecodingTest, MAYBE_TestOpusBitExactness) { | 477 TEST_F(NetEqDecodingTest, MAYBE_TestOpusBitExactness) { |
477 const std::string input_rtp_file = | 478 const std::string input_rtp_file = |
478 webrtc::test::ResourcePath("audio_coding/neteq_opus", "rtp"); | 479 webrtc::test::ResourcePath("audio_coding/neteq_opus", "rtp"); |
479 | 480 |
480 const std::string output_checksum = PlatformChecksum( | 481 const std::string output_checksum = PlatformChecksum( |
481 "9d7d52bc94e941d106aa518f324f16a58d231586", | 482 "9d7d52bc94e941d106aa518f324f16a58d231586", |
(...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 if (muted) { | 1582 if (muted) { |
1582 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); | 1583 EXPECT_TRUE(AudioFramesEqualExceptData(out_frame1, out_frame2)); |
1583 } else { | 1584 } else { |
1584 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); | 1585 EXPECT_TRUE(AudioFramesEqual(out_frame1, out_frame2)); |
1585 } | 1586 } |
1586 } | 1587 } |
1587 EXPECT_FALSE(muted); | 1588 EXPECT_FALSE(muted); |
1588 } | 1589 } |
1589 | 1590 |
1590 } // namespace webrtc | 1591 } // namespace webrtc |
OLD | NEW |