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

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

Issue 1513483005: Typo fix: Enable a bunch of tests that were accidentally disabled (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 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/acm2/audio_coding_module_unittest_oldapi.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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 size_t* payload_len) { 437 size_t* payload_len) {
438 rtp_info->header.sequenceNumber = frame_index; 438 rtp_info->header.sequenceNumber = frame_index;
439 rtp_info->header.timestamp = timestamp; 439 rtp_info->header.timestamp = timestamp;
440 rtp_info->header.ssrc = 0x1234; // Just an arbitrary SSRC. 440 rtp_info->header.ssrc = 0x1234; // Just an arbitrary SSRC.
441 rtp_info->header.payloadType = 98; // WB CNG. 441 rtp_info->header.payloadType = 98; // WB CNG.
442 rtp_info->header.markerBit = 0; 442 rtp_info->header.markerBit = 0;
443 payload[0] = 64; // Noise level -64 dBov, quite arbitrarily chosen. 443 payload[0] = 64; // Noise level -64 dBov, quite arbitrarily chosen.
444 *payload_len = 1; // Only noise level, no spectral parameters. 444 *payload_len = 1; // Only noise level, no spectral parameters.
445 } 445 }
446 446
447 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISAC)) && \ 447 #if (defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX)) && \
448 defined(WEBRTC_CODEC_ILBC) && defined(WEBRTC_CODEC_G722) 448 defined(WEBRTC_CODEC_ILBC) && defined(WEBRTC_CODEC_G722)
449 #define IF_ALL_CODECS(x) x 449 #define IF_ALL_CODECS(x) x
450 #else 450 #else
451 #define IF_ALL_CODECS(x) DISABLED_##x 451 #define IF_ALL_CODECS(x) DISABLED_##x
452 #endif 452 #endif
453 453
454 TEST_F(NetEqDecodingTest, 454 TEST_F(NetEqDecodingTest,
455 DISABLED_ON_IOS(DISABLED_ON_ANDROID(IF_ALL_CODECS(TestBitExactness)))) { 455 DISABLED_ON_IOS(DISABLED_ON_ANDROID(IF_ALL_CODECS(TestBitExactness)))) {
456 const std::string input_rtp_file = webrtc::test::ProjectRootPath() + 456 const std::string input_rtp_file = webrtc::test::ProjectRootPath() +
457 "resources/audio_coding/neteq_universal_new.rtp"; 457 "resources/audio_coding/neteq_universal_new.rtp";
(...skipping 1079 matching lines...) Expand 10 before | Expand all | Expand 10 after
1537 // Pull audio once. 1537 // Pull audio once.
1538 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, &out_len, 1538 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, &out_len,
1539 &num_channels, &type)); 1539 &num_channels, &type));
1540 ASSERT_EQ(kBlockSize16kHz, out_len); 1540 ASSERT_EQ(kBlockSize16kHz, out_len);
1541 } 1541 }
1542 // Verify speech output. 1542 // Verify speech output.
1543 EXPECT_EQ(kOutputNormal, type); 1543 EXPECT_EQ(kOutputNormal, type);
1544 } 1544 }
1545 1545
1546 } // namespace webrtc 1546 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/acm2/audio_coding_module_unittest_oldapi.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698