| 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 /* | |
| 12 * This file includes unit tests for NetEQ. | |
| 13 */ | |
| 14 | |
| 15 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" | 11 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" |
| 16 | 12 |
| 17 #include <math.h> | 13 #include <math.h> |
| 18 #include <stdlib.h> | 14 #include <stdlib.h> |
| 19 #include <string.h> // memset | 15 #include <string.h> // memset |
| 20 | 16 |
| 21 #include <algorithm> | 17 #include <algorithm> |
| 22 #include <memory> | 18 #include <memory> |
| 23 #include <set> | 19 #include <set> |
| 24 #include <string> | 20 #include <string> |
| (...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 timestamp += kSamples; | 1571 timestamp += kSamples; |
| 1576 | 1572 |
| 1577 // Pull audio once. | 1573 // Pull audio once. |
| 1578 ASSERT_EQ(0, neteq_->GetAudio(&out_frame_)); | 1574 ASSERT_EQ(0, neteq_->GetAudio(&out_frame_)); |
| 1579 ASSERT_EQ(kBlockSize16kHz, out_frame_.samples_per_channel_); | 1575 ASSERT_EQ(kBlockSize16kHz, out_frame_.samples_per_channel_); |
| 1580 } | 1576 } |
| 1581 // Verify speech output. | 1577 // Verify speech output. |
| 1582 EXPECT_EQ(AudioFrame::kNormalSpeech, out_frame_.speech_type_); | 1578 EXPECT_EQ(AudioFrame::kNormalSpeech, out_frame_.speech_type_); |
| 1583 } | 1579 } |
| 1584 } // namespace webrtc | 1580 } // namespace webrtc |
| OLD | NEW |