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 |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_QUALITY_TEST_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_QUALITY_TEST_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_QUALITY_TEST_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_QUALITY_TEST_H_ |
13 | 13 |
14 #include <fstream> | 14 #include <fstream> |
15 #include <memory> | 15 #include <memory> |
16 #include <gflags/gflags.h> | |
17 | 16 |
18 #include "webrtc/common_types.h" | 17 #include "webrtc/common_types.h" |
19 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" | 18 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" |
20 #include "webrtc/modules/audio_coding/neteq/tools/audio_sink.h" | 19 #include "webrtc/modules/audio_coding/neteq/tools/audio_sink.h" |
21 #include "webrtc/modules/audio_coding/neteq/tools/input_audio_file.h" | 20 #include "webrtc/modules/audio_coding/neteq/tools/input_audio_file.h" |
22 #include "webrtc/modules/audio_coding/neteq/tools/rtp_generator.h" | 21 #include "webrtc/modules/audio_coding/neteq/tools/rtp_generator.h" |
23 #include "webrtc/modules/include/module_common_types.h" | 22 #include "webrtc/modules/include/module_common_types.h" |
| 23 #include "webrtc/rtc_base/flags.h" |
24 #include "webrtc/test/gtest.h" | 24 #include "webrtc/test/gtest.h" |
25 #include "webrtc/typedefs.h" | 25 #include "webrtc/typedefs.h" |
26 | 26 |
27 using google::RegisterFlagValidator; | |
28 | |
29 namespace webrtc { | 27 namespace webrtc { |
30 namespace test { | 28 namespace test { |
31 | 29 |
32 class LossModel { | 30 class LossModel { |
33 public: | 31 public: |
34 virtual ~LossModel() {}; | 32 virtual ~LossModel() {}; |
35 virtual bool Lost() = 0; | 33 virtual bool Lost() = 0; |
36 }; | 34 }; |
37 | 35 |
38 class NoLoss : public LossModel { | 36 class NoLoss : public LossModel { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 AudioFrame out_frame_; | 131 AudioFrame out_frame_; |
134 RTPHeader rtp_header_; | 132 RTPHeader rtp_header_; |
135 | 133 |
136 size_t total_payload_size_bytes_; | 134 size_t total_payload_size_bytes_; |
137 }; | 135 }; |
138 | 136 |
139 } // namespace test | 137 } // namespace test |
140 } // namespace webrtc | 138 } // namespace webrtc |
141 | 139 |
142 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_QUALITY_TEST_H_ | 140 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_QUALITY_TEST_H_ |
OLD | NEW |