OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 25 matching lines...) Expand all Loading... |
36 static const bool bit_rate_dummy = | 36 static const bool bit_rate_dummy = |
37 RegisterFlagValidator(&FLAGS_bit_rate_kbps, &ValidateBitRate); | 37 RegisterFlagValidator(&FLAGS_bit_rate_kbps, &ValidateBitRate); |
38 | 38 |
39 } // namespace | 39 } // namespace |
40 | 40 |
41 class NetEqIsacQualityTest : public NetEqQualityTest { | 41 class NetEqIsacQualityTest : public NetEqQualityTest { |
42 protected: | 42 protected: |
43 NetEqIsacQualityTest(); | 43 NetEqIsacQualityTest(); |
44 void SetUp() override; | 44 void SetUp() override; |
45 void TearDown() override; | 45 void TearDown() override; |
46 int EncodeBlock(int16_t* in_data, size_t block_size_samples, | 46 virtual int EncodeBlock(int16_t* in_data, size_t block_size_samples, |
47 rtc::Buffer* payload, size_t max_bytes) override; | 47 rtc::Buffer* payload, size_t max_bytes); |
48 private: | 48 private: |
49 ISACFIX_MainStruct* isac_encoder_; | 49 ISACFIX_MainStruct* isac_encoder_; |
50 int bit_rate_kbps_; | 50 int bit_rate_kbps_; |
51 }; | 51 }; |
52 | 52 |
53 NetEqIsacQualityTest::NetEqIsacQualityTest() | 53 NetEqIsacQualityTest::NetEqIsacQualityTest() |
54 : NetEqQualityTest(kIsacBlockDurationMs, | 54 : NetEqQualityTest(kIsacBlockDurationMs, |
55 kIsacInputSamplingKhz, | 55 kIsacInputSamplingKhz, |
56 kIsacOutputSamplingKhz, | 56 kIsacOutputSamplingKhz, |
57 NetEqDecoder::kDecoderISAC), | 57 NetEqDecoder::kDecoderISAC), |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 EXPECT_GT(value, 0); | 98 EXPECT_GT(value, 0); |
99 return value; | 99 return value; |
100 } | 100 } |
101 | 101 |
102 TEST_F(NetEqIsacQualityTest, Test) { | 102 TEST_F(NetEqIsacQualityTest, Test) { |
103 Simulate(); | 103 Simulate(); |
104 } | 104 } |
105 | 105 |
106 } // namespace test | 106 } // namespace test |
107 } // namespace webrtc | 107 } // namespace webrtc |
OLD | NEW |