| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 #include "webrtc/modules/audio_coding/neteq/tools/neteq_external_decoder_test.h" | 12 #include "webrtc/modules/audio_coding/neteq/tools/neteq_external_decoder_test.h" |
| 13 | 13 |
| 14 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" | 14 #include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h" |
| 15 #include "webrtc/rtc_base/format_macros.h" | 15 #include "webrtc/base/format_macros.h" |
| 16 #include "webrtc/test/gtest.h" | 16 #include "webrtc/test/gtest.h" |
| 17 | 17 |
| 18 namespace webrtc { | 18 namespace webrtc { |
| 19 namespace test { | 19 namespace test { |
| 20 | 20 |
| 21 NetEqExternalDecoderTest::NetEqExternalDecoderTest(NetEqDecoder codec, | 21 NetEqExternalDecoderTest::NetEqExternalDecoderTest(NetEqDecoder codec, |
| 22 int sample_rate_hz, | 22 int sample_rate_hz, |
| 23 AudioDecoder* decoder) | 23 AudioDecoder* decoder) |
| 24 : codec_(codec), | 24 : codec_(codec), |
| 25 decoder_(decoder), | 25 decoder_(decoder), |
| (...skipping 24 matching lines...) Expand all Loading... |
| 50 EXPECT_EQ(NetEq::kOK, neteq_->GetAudio(output, &muted)); | 50 EXPECT_EQ(NetEq::kOK, neteq_->GetAudio(output, &muted)); |
| 51 ASSERT_FALSE(muted); | 51 ASSERT_FALSE(muted); |
| 52 EXPECT_EQ(channels_, output->num_channels_); | 52 EXPECT_EQ(channels_, output->num_channels_); |
| 53 EXPECT_EQ(static_cast<size_t>(kOutputLengthMs * sample_rate_hz_ / 1000), | 53 EXPECT_EQ(static_cast<size_t>(kOutputLengthMs * sample_rate_hz_ / 1000), |
| 54 output->samples_per_channel_); | 54 output->samples_per_channel_); |
| 55 EXPECT_EQ(sample_rate_hz_, neteq_->last_output_sample_rate_hz()); | 55 EXPECT_EQ(sample_rate_hz_, neteq_->last_output_sample_rate_hz()); |
| 56 } | 56 } |
| 57 | 57 |
| 58 } // namespace test | 58 } // namespace test |
| 59 } // namespace webrtc | 59 } // namespace webrtc |
| OLD | NEW |