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 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 23 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
24 #include "webrtc/system_wrappers/include/event_wrapper.h" | 24 #include "webrtc/system_wrappers/include/event_wrapper.h" |
25 #include "webrtc/test/gtest.h" | 25 #include "webrtc/test/gtest.h" |
26 #include "webrtc/voice_engine/include/voe_base.h" | 26 #include "webrtc/voice_engine/include/voe_base.h" |
27 #include "webrtc/voice_engine/include/voe_codec.h" | 27 #include "webrtc/voice_engine/include/voe_codec.h" |
28 #include "webrtc/voice_engine/include/voe_file.h" | 28 #include "webrtc/voice_engine/include/voe_file.h" |
29 #include "webrtc/voice_engine/include/voe_network.h" | 29 #include "webrtc/voice_engine/include/voe_network.h" |
30 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" | 30 #include "webrtc/voice_engine/include/voe_rtp_rtcp.h" |
31 #include "webrtc/voice_engine/test/auto_test/fakes/loudest_filter.h" | 31 #include "webrtc/voice_engine/test/auto_test/fakes/loudest_filter.h" |
32 | 32 |
| 33 namespace webrtc { |
| 34 namespace voetest { |
| 35 |
33 static const size_t kMaxPacketSizeByte = 1500; | 36 static const size_t kMaxPacketSizeByte = 1500; |
34 | 37 |
35 namespace voetest { | |
36 | |
37 // This class is to simulate a conference call. There are two Voice Engines, one | 38 // This class is to simulate a conference call. There are two Voice Engines, one |
38 // for local channels and the other for remote channels. There is a simulated | 39 // for local channels and the other for remote channels. There is a simulated |
39 // reflector, which exchanges RTCP with local channels. For simplicity, it | 40 // reflector, which exchanges RTCP with local channels. For simplicity, it |
40 // also uses the Voice Engine for remote channels. One can add streams by | 41 // also uses the Voice Engine for remote channels. One can add streams by |
41 // calling AddStream(), which creates a remote sender channel and a local | 42 // calling AddStream(), which creates a remote sender channel and a local |
42 // receive channel. The remote sender channel plays a file as microphone in a | 43 // receive channel. The remote sender channel plays a file as microphone in a |
43 // looped fashion. Received streams are mixed and played. | 44 // looped fashion. Received streams are mixed and played. |
44 | 45 |
45 class ConferenceTransport: public webrtc::Transport { | 46 class ConferenceTransport: public webrtc::Transport { |
46 public: | 47 public: |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 webrtc::VoEBase* remote_base_; | 152 webrtc::VoEBase* remote_base_; |
152 webrtc::VoECodec* remote_codec_; | 153 webrtc::VoECodec* remote_codec_; |
153 webrtc::VoERTP_RTCP* remote_rtp_rtcp_; | 154 webrtc::VoERTP_RTCP* remote_rtp_rtcp_; |
154 webrtc::VoENetwork* remote_network_; | 155 webrtc::VoENetwork* remote_network_; |
155 webrtc::VoEFile* remote_file_; | 156 webrtc::VoEFile* remote_file_; |
156 | 157 |
157 LoudestFilter loudest_filter_; | 158 LoudestFilter loudest_filter_; |
158 | 159 |
159 const std::unique_ptr<webrtc::RtpHeaderParser> rtp_header_parser_; | 160 const std::unique_ptr<webrtc::RtpHeaderParser> rtp_header_parser_; |
160 }; | 161 }; |
| 162 |
161 } // namespace voetest | 163 } // namespace voetest |
| 164 } // namespace webrtc |
162 | 165 |
163 #endif // WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_CONFERENCE_TRANSPORT_H_ | 166 #endif // WEBRTC_VOICE_ENGINE_TEST_AUTO_TEST_FAKES_CONFERENCE_TRANSPORT_H_ |
OLD | NEW |