| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h" | 11 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h" |
| 12 #include "webrtc/modules/audio_coding/codecs/legacy_encoded_audio_frame.h" | 12 #include "webrtc/modules/audio_coding/codecs/legacy_encoded_audio_frame.h" |
| 13 #include "webrtc/test/gtest.h" | 13 #include "webrtc/test/gtest.h" |
| 14 | 14 |
| 15 namespace webrtc { | 15 namespace webrtc { |
| 16 | 16 |
| 17 using NetEqDecoder = acm2::RentACodec::NetEqDecoder; | |
| 18 | |
| 19 class SplitBySamplesTest : public ::testing::TestWithParam<NetEqDecoder> { | 17 class SplitBySamplesTest : public ::testing::TestWithParam<NetEqDecoder> { |
| 20 protected: | 18 protected: |
| 21 virtual void SetUp() { | 19 virtual void SetUp() { |
| 22 decoder_type_ = GetParam(); | 20 decoder_type_ = GetParam(); |
| 23 switch (decoder_type_) { | 21 switch (decoder_type_) { |
| 24 case NetEqDecoder::kDecoderPCMu: | 22 case NetEqDecoder::kDecoderPCMu: |
| 25 case NetEqDecoder::kDecoderPCMa: | 23 case NetEqDecoder::kDecoderPCMa: |
| 26 bytes_per_ms_ = 8; | 24 bytes_per_ms_ = 8; |
| 27 samples_per_ms_ = 8; | 25 samples_per_ms_ = 8; |
| 28 break; | 26 break; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 NetEqDecoder::kDecoderPCM16Bwb, | 158 NetEqDecoder::kDecoderPCM16Bwb, |
| 161 NetEqDecoder::kDecoderPCM16Bswb32kHz, | 159 NetEqDecoder::kDecoderPCM16Bswb32kHz, |
| 162 NetEqDecoder::kDecoderPCM16Bswb48kHz, | 160 NetEqDecoder::kDecoderPCM16Bswb48kHz, |
| 163 NetEqDecoder::kDecoderPCM16B_2ch, | 161 NetEqDecoder::kDecoderPCM16B_2ch, |
| 164 NetEqDecoder::kDecoderPCM16Bwb_2ch, | 162 NetEqDecoder::kDecoderPCM16Bwb_2ch, |
| 165 NetEqDecoder::kDecoderPCM16Bswb32kHz_2ch, | 163 NetEqDecoder::kDecoderPCM16Bswb32kHz_2ch, |
| 166 NetEqDecoder::kDecoderPCM16Bswb48kHz_2ch, | 164 NetEqDecoder::kDecoderPCM16Bswb48kHz_2ch, |
| 167 NetEqDecoder::kDecoderPCM16B_5ch)); | 165 NetEqDecoder::kDecoderPCM16B_5ch)); |
| 168 | 166 |
| 169 } // namespace webrtc | 167 } // namespace webrtc |
| OLD | NEW |