OLD | NEW |
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 |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" |
14 #include "webrtc/base/safe_conversions.h" | 14 #include "webrtc/base/safe_conversions.h" |
15 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h" | 15 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h" |
16 #include "webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.h" | 16 #include "webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.h" |
17 #include "webrtc/test/testsupport/fileutils.h" | 17 #include "webrtc/test/testsupport/fileutils.h" |
18 | 18 |
19 using google::RegisterFlagValidator; | 19 using google::RegisterFlagValidator; |
20 using google::ParseCommandLineFlags; | 20 using google::ParseCommandLineFlags; |
21 using std::string; | |
22 using testing::InitGoogleTest; | 21 using testing::InitGoogleTest; |
23 | 22 |
24 namespace webrtc { | 23 namespace webrtc { |
25 namespace test { | 24 namespace test { |
26 namespace { | 25 namespace { |
27 static const int kInputSampleRateKhz = 8; | 26 static const int kInputSampleRateKhz = 8; |
28 static const int kOutputSampleRateKhz = 8; | 27 static const int kOutputSampleRateKhz = 8; |
29 | 28 |
30 // Define switch for frame size. | 29 // Define switch for frame size. |
31 static bool ValidateFrameSize(const char* flagname, int32_t value) { | 30 static bool ValidateFrameSize(const char* flagname, int32_t value) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 private: | 77 private: |
79 std::unique_ptr<AudioEncoderIlbc> encoder_; | 78 std::unique_ptr<AudioEncoderIlbc> encoder_; |
80 }; | 79 }; |
81 | 80 |
82 TEST_F(NetEqIlbcQualityTest, Test) { | 81 TEST_F(NetEqIlbcQualityTest, Test) { |
83 Simulate(); | 82 Simulate(); |
84 } | 83 } |
85 | 84 |
86 } // namespace test | 85 } // namespace test |
87 } // namespace webrtc | 86 } // namespace webrtc |
OLD | NEW |