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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 | 517 |
518 #if !defined(WEBRTC_IOS) && !defined(WEBRTC_ANDROID) && \ | 518 #if !defined(WEBRTC_IOS) && !defined(WEBRTC_ANDROID) && \ |
519 defined(WEBRTC_NETEQ_UNITTEST_BITEXACT) && \ | 519 defined(WEBRTC_NETEQ_UNITTEST_BITEXACT) && \ |
520 (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) && \ | 520 (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) && \ |
521 defined(WEBRTC_CODEC_ILBC) && defined(WEBRTC_CODEC_G722) | 521 defined(WEBRTC_CODEC_ILBC) && defined(WEBRTC_CODEC_G722) |
522 #define MAYBE_TestBitExactness TestBitExactness | 522 #define MAYBE_TestBitExactness TestBitExactness |
523 #else | 523 #else |
524 #define MAYBE_TestBitExactness DISABLED_TestBitExactness | 524 #define MAYBE_TestBitExactness DISABLED_TestBitExactness |
525 #endif | 525 #endif |
526 TEST_F(NetEqDecodingTest, MAYBE_TestBitExactness) { | 526 TEST_F(NetEqDecodingTest, MAYBE_TestBitExactness) { |
527 const std::string input_rtp_file = webrtc::test::ProjectRootPath() + | 527 const std::string input_rtp_file = |
528 "resources/audio_coding/neteq_universal_new.rtp"; | 528 webrtc::test::ResourcePath("audio_coding/neteq_universal_new", "rtp"); |
529 // Note that neteq4_universal_ref.pcm and neteq4_universal_ref_win_32.pcm | 529 // Note that neteq4_universal_ref.pcm and neteq4_universal_ref_win_32.pcm |
530 // are identical. The latter could have been removed, but if clients still | 530 // are identical. The latter could have been removed, but if clients still |
531 // have a copy of the file, the test will fail. | 531 // have a copy of the file, the test will fail. |
532 const std::string input_ref_file = | 532 const std::string input_ref_file = |
533 webrtc::test::ResourcePath("audio_coding/neteq4_universal_ref", "pcm"); | 533 webrtc::test::ResourcePath("audio_coding/neteq4_universal_ref", "pcm"); |
534 #if defined(_MSC_VER) && (_MSC_VER >= 1700) | 534 #if defined(_MSC_VER) && (_MSC_VER >= 1700) |
535 // For Visual Studio 2012 and later, we will have to use the generic reference | 535 // For Visual Studio 2012 and later, we will have to use the generic reference |
536 // file, rather than the windows-specific one. | 536 // file, rather than the windows-specific one. |
537 const std::string network_stat_ref_file = webrtc::test::ProjectRootPath() + | 537 const std::string network_stat_ref_file = webrtc::test::ProjectRootPath() + |
538 "resources/audio_coding/neteq4_network_stats.dat"; | 538 "resources/audio_coding/neteq4_network_stats.dat"; |
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 // Pull audio once. | 1639 // Pull audio once. |
1640 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, &out_len, | 1640 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, &out_len, |
1641 &num_channels, &type)); | 1641 &num_channels, &type)); |
1642 ASSERT_EQ(kBlockSize16kHz, out_len); | 1642 ASSERT_EQ(kBlockSize16kHz, out_len); |
1643 } | 1643 } |
1644 // Verify speech output. | 1644 // Verify speech output. |
1645 EXPECT_EQ(kOutputNormal, type); | 1645 EXPECT_EQ(kOutputNormal, type); |
1646 } | 1646 } |
1647 | 1647 |
1648 } // namespace webrtc | 1648 } // namespace webrtc |
OLD | NEW |