| 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 |
| 11 /* | 11 /* |
| 12 * This file includes unit tests for NetEQ. | 12 * This file includes unit tests for NetEQ. |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 #include "webrtc/modules/audio_coding/neteq/interface/neteq.h" | 15 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" |
| 16 | 16 |
| 17 #include <math.h> | 17 #include <math.h> |
| 18 #include <stdlib.h> | 18 #include <stdlib.h> |
| 19 #include <string.h> // memset | 19 #include <string.h> // memset |
| 20 | 20 |
| 21 #include <algorithm> | 21 #include <algorithm> |
| 22 #include <set> | 22 #include <set> |
| 23 #include <string> | 23 #include <string> |
| 24 #include <vector> | 24 #include <vector> |
| 25 | 25 |
| (...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 // Pull audio once. | 1525 // Pull audio once. |
| 1526 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, &out_len, | 1526 ASSERT_EQ(0, neteq_->GetAudio(kMaxBlockSize, out_data_, &out_len, |
| 1527 &num_channels, &type)); | 1527 &num_channels, &type)); |
| 1528 ASSERT_EQ(kBlockSize16kHz, out_len); | 1528 ASSERT_EQ(kBlockSize16kHz, out_len); |
| 1529 } | 1529 } |
| 1530 // Verify speech output. | 1530 // Verify speech output. |
| 1531 EXPECT_EQ(kOutputNormal, type); | 1531 EXPECT_EQ(kOutputNormal, type); |
| 1532 } | 1532 } |
| 1533 | 1533 |
| 1534 } // namespace webrtc | 1534 } // namespace webrtc |
| OLD | NEW |