OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 void Perform() override; | 82 void Perform() override; |
83 | 83 |
84 private: | 84 private: |
85 void RunTestCases(); | 85 void RunTestCases(); |
86 void Test(bool new_outfile); | 86 void Test(bool new_outfile); |
87 void SetVAD(bool enable_dtx, bool enable_vad, ACMVADMode vad_mode); | 87 void SetVAD(bool enable_dtx, bool enable_vad, ACMVADMode vad_mode); |
88 | 88 |
89 bool vad_enabled_; | 89 bool vad_enabled_; |
90 bool dtx_enabled_; | 90 bool dtx_enabled_; |
91 bool use_webrtc_dtx_; | |
92 int output_file_num_; | 91 int output_file_num_; |
93 }; | 92 }; |
94 | 93 |
95 // TestOpusDtx is to verify that the Opus DTX performs as it should. | 94 // TestOpusDtx is to verify that the Opus DTX performs as it should. |
96 class TestOpusDtx final : public TestVadDtx { | 95 class TestOpusDtx final : public TestVadDtx { |
97 public: | 96 public: |
98 void Perform() override; | 97 void Perform() override; |
99 }; | 98 }; |
100 | 99 |
101 } // namespace webrtc | 100 } // namespace webrtc |
102 | 101 |
103 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_TESTVADDTX_H_ | 102 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_TEST_TESTVADDTX_H_ |
OLD | NEW |