| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 } | 411 } |
| 412 }; | 412 }; |
| 413 | 413 |
| 414 class AudioDecoderG722StereoTest : public AudioDecoderTest { | 414 class AudioDecoderG722StereoTest : public AudioDecoderTest { |
| 415 protected: | 415 protected: |
| 416 AudioDecoderG722StereoTest() : AudioDecoderTest() { | 416 AudioDecoderG722StereoTest() : AudioDecoderTest() { |
| 417 channels_ = 2; | 417 channels_ = 2; |
| 418 codec_input_rate_hz_ = 16000; | 418 codec_input_rate_hz_ = 16000; |
| 419 frame_size_ = 160; | 419 frame_size_ = 160; |
| 420 data_length_ = 10 * frame_size_; | 420 data_length_ = 10 * frame_size_; |
| 421 decoder_ = new AudioDecoderG722Stereo; | 421 decoder_ = new AudioDecoderG722StereoImpl; |
| 422 assert(decoder_); | 422 assert(decoder_); |
| 423 AudioEncoderG722Config config; | 423 AudioEncoderG722Config config; |
| 424 config.frame_size_ms = 10; | 424 config.frame_size_ms = 10; |
| 425 config.num_channels = 2; | 425 config.num_channels = 2; |
| 426 audio_encoder_.reset(new AudioEncoderG722Impl(config, payload_type_)); | 426 audio_encoder_.reset(new AudioEncoderG722Impl(config, payload_type_)); |
| 427 } | 427 } |
| 428 }; | 428 }; |
| 429 | 429 |
| 430 class AudioDecoderOpusTest : public AudioDecoderTest { | 430 class AudioDecoderOpusTest : public AudioDecoderTest { |
| 431 protected: | 431 protected: |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGnb)); | 687 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGnb)); |
| 688 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGwb)); | 688 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGwb)); |
| 689 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb32kHz)); | 689 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb32kHz)); |
| 690 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb48kHz)); | 690 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderCNGswb48kHz)); |
| 691 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderArbitrary)); | 691 EXPECT_TRUE(CodecSupported(NetEqDecoder::kDecoderArbitrary)); |
| 692 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus)); | 692 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus)); |
| 693 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus_2ch)); | 693 EXPECT_EQ(has_opus, CodecSupported(NetEqDecoder::kDecoderOpus_2ch)); |
| 694 } | 694 } |
| 695 | 695 |
| 696 } // namespace webrtc | 696 } // namespace webrtc |
| OLD | NEW |