OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 decoder_ = new AudioDecoderIsacFix(codec_input_rate_hz_); | 395 decoder_ = new AudioDecoderIsacFix(codec_input_rate_hz_); |
396 } | 396 } |
397 }; | 397 }; |
398 | 398 |
399 class AudioDecoderG722Test : public AudioDecoderTest { | 399 class AudioDecoderG722Test : public AudioDecoderTest { |
400 protected: | 400 protected: |
401 AudioDecoderG722Test() : AudioDecoderTest() { | 401 AudioDecoderG722Test() : AudioDecoderTest() { |
402 codec_input_rate_hz_ = 16000; | 402 codec_input_rate_hz_ = 16000; |
403 frame_size_ = 160; | 403 frame_size_ = 160; |
404 data_length_ = 10 * frame_size_; | 404 data_length_ = 10 * frame_size_; |
405 decoder_ = new AudioDecoderG722; | 405 decoder_ = new AudioDecoderG722Impl; |
406 assert(decoder_); | 406 assert(decoder_); |
407 AudioEncoderG722::Config config; | 407 AudioEncoderG722::Config config; |
408 config.frame_size_ms = 10; | 408 config.frame_size_ms = 10; |
409 config.payload_type = payload_type_; | 409 config.payload_type = payload_type_; |
410 config.num_channels = 1; | 410 config.num_channels = 1; |
411 audio_encoder_.reset(new AudioEncoderG722(config)); | 411 audio_encoder_.reset(new AudioEncoderG722(config)); |
412 } | 412 } |
413 }; | 413 }; |
414 | 414 |
415 class AudioDecoderG722StereoTest : public AudioDecoderTest { | 415 class AudioDecoderG722StereoTest : public AudioDecoderTest { |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
689 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGnb)); | 689 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGnb)); |
690 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGwb)); | 690 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGwb)); |
691 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb32kHz)); | 691 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb32kHz)); |
692 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb48kHz)); | 692 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb48kHz)); |
693 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderArbitrary)); | 693 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderArbitrary)); |
694 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus)); | 694 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus)); |
695 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus_2ch)); | 695 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus_2ch)); |
696 } | 696 } |
697 | 697 |
698 } // namespace webrtc | 698 } // namespace webrtc |
OLD | NEW |