Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: webrtc/modules/audio_coding/neteq/test/neteq_ilbc_quality_test.cc

Issue 1424083002: Make an enum class out of NetEqDecoder, and hide the neteq_decoders_ table (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 29 matching lines...) Expand all
40 RegisterFlagValidator(&FLAGS_frame_size_ms, &ValidateFrameSize); 40 RegisterFlagValidator(&FLAGS_frame_size_ms, &ValidateFrameSize);
41 41
42 } // namespace 42 } // namespace
43 43
44 class NetEqIlbcQualityTest : public NetEqQualityTest { 44 class NetEqIlbcQualityTest : public NetEqQualityTest {
45 protected: 45 protected:
46 NetEqIlbcQualityTest() 46 NetEqIlbcQualityTest()
47 : NetEqQualityTest(FLAGS_frame_size_ms, 47 : NetEqQualityTest(FLAGS_frame_size_ms,
48 kInputSampleRateKhz, 48 kInputSampleRateKhz,
49 kOutputSampleRateKhz, 49 kOutputSampleRateKhz,
50 kDecoderILBC) { 50 NetEqDecoder::kDecoderILBC) {}
51 }
52 51
53 void SetUp() override { 52 void SetUp() override {
54 ASSERT_EQ(1, channels_) << "iLBC supports only mono audio."; 53 ASSERT_EQ(1, channels_) << "iLBC supports only mono audio.";
55 AudioEncoderIlbc::Config config; 54 AudioEncoderIlbc::Config config;
56 config.frame_size_ms = FLAGS_frame_size_ms; 55 config.frame_size_ms = FLAGS_frame_size_ms;
57 encoder_.reset(new AudioEncoderIlbc(config)); 56 encoder_.reset(new AudioEncoderIlbc(config));
58 NetEqQualityTest::SetUp(); 57 NetEqQualityTest::SetUp();
59 } 58 }
60 59
61 int EncodeBlock(int16_t* in_data, 60 int EncodeBlock(int16_t* in_data,
(...skipping 15 matching lines...) Expand all
77 private: 76 private:
78 rtc::scoped_ptr<AudioEncoderIlbc> encoder_; 77 rtc::scoped_ptr<AudioEncoderIlbc> encoder_;
79 }; 78 };
80 79
81 TEST_F(NetEqIlbcQualityTest, Test) { 80 TEST_F(NetEqIlbcQualityTest, Test) {
82 Simulate(); 81 Simulate();
83 } 82 }
84 83
85 } // namespace test 84 } // namespace test
86 } // namespace webrtc 85 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/test/RTPencode.cc ('k') | webrtc/modules/audio_coding/neteq/test/neteq_isac_quality_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698