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 #ifndef WEBRTC_TEST_CALL_TEST_H_ | 10 #ifndef WEBRTC_TEST_CALL_TEST_H_ |
11 #define WEBRTC_TEST_CALL_TEST_H_ | 11 #define WEBRTC_TEST_CALL_TEST_H_ |
12 | 12 |
13 #include <memory> | 13 #include <memory> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "webrtc/call.h" | 16 #include "webrtc/call.h" |
17 #include "webrtc/test/fake_audio_device.h" | 17 #include "webrtc/test/fake_audio_device.h" |
18 #include "webrtc/test/fake_decoder.h" | 18 #include "webrtc/test/fake_decoder.h" |
19 #include "webrtc/test/fake_encoder.h" | 19 #include "webrtc/test/fake_encoder.h" |
20 #include "webrtc/test/frame_generator_capturer.h" | 20 #include "webrtc/test/frame_generator_capturer.h" |
21 #include "webrtc/test/rtp_rtcp_observer.h" | 21 #include "webrtc/test/rtp_rtcp_observer.h" |
22 | 22 |
23 namespace webrtc { | 23 namespace webrtc { |
24 | 24 |
25 class VoEBase; | 25 class VoEBase; |
26 class VoECodec; | 26 class VoECodec; |
27 | 27 |
| 28 namespace voe { |
| 29 class ChannelProxy; |
| 30 } |
| 31 |
28 namespace test { | 32 namespace test { |
29 | 33 |
30 class BaseTest; | 34 class BaseTest; |
31 | 35 |
32 class CallTest : public ::testing::Test { | 36 class CallTest : public ::testing::Test { |
33 public: | 37 public: |
34 CallTest(); | 38 CallTest(); |
35 virtual ~CallTest(); | 39 virtual ~CallTest(); |
36 | 40 |
37 static const size_t kNumSsrcs = 3; | 41 static const size_t kNumSsrcs = 3; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 86 |
83 Clock* const clock_; | 87 Clock* const clock_; |
84 | 88 |
85 std::unique_ptr<Call> sender_call_; | 89 std::unique_ptr<Call> sender_call_; |
86 std::unique_ptr<PacketTransport> send_transport_; | 90 std::unique_ptr<PacketTransport> send_transport_; |
87 VideoSendStream::Config video_send_config_; | 91 VideoSendStream::Config video_send_config_; |
88 VideoEncoderConfig video_encoder_config_; | 92 VideoEncoderConfig video_encoder_config_; |
89 VideoSendStream* video_send_stream_; | 93 VideoSendStream* video_send_stream_; |
90 AudioSendStream::Config audio_send_config_; | 94 AudioSendStream::Config audio_send_config_; |
91 AudioSendStream* audio_send_stream_; | 95 AudioSendStream* audio_send_stream_; |
| 96 std::unique_ptr<voe::ChannelProxy> audio_send_channel_proxy_; |
92 | 97 |
93 std::unique_ptr<Call> receiver_call_; | 98 std::unique_ptr<Call> receiver_call_; |
94 std::unique_ptr<PacketTransport> receive_transport_; | 99 std::unique_ptr<PacketTransport> receive_transport_; |
95 std::vector<VideoReceiveStream::Config> video_receive_configs_; | 100 std::vector<VideoReceiveStream::Config> video_receive_configs_; |
96 std::vector<VideoReceiveStream*> video_receive_streams_; | 101 std::vector<VideoReceiveStream*> video_receive_streams_; |
97 std::vector<AudioReceiveStream::Config> audio_receive_configs_; | 102 std::vector<AudioReceiveStream::Config> audio_receive_configs_; |
98 std::vector<AudioReceiveStream*> audio_receive_streams_; | 103 std::vector<AudioReceiveStream*> audio_receive_streams_; |
99 | 104 |
100 std::unique_ptr<test::FrameGeneratorCapturer> frame_generator_capturer_; | 105 std::unique_ptr<test::FrameGeneratorCapturer> frame_generator_capturer_; |
101 test::FakeEncoder fake_encoder_; | 106 test::FakeEncoder fake_encoder_; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 public: | 185 public: |
181 explicit EndToEndTest(unsigned int timeout_ms); | 186 explicit EndToEndTest(unsigned int timeout_ms); |
182 | 187 |
183 bool ShouldCreateReceivers() const override; | 188 bool ShouldCreateReceivers() const override; |
184 }; | 189 }; |
185 | 190 |
186 } // namespace test | 191 } // namespace test |
187 } // namespace webrtc | 192 } // namespace webrtc |
188 | 193 |
189 #endif // WEBRTC_TEST_CALL_TEST_H_ | 194 #endif // WEBRTC_TEST_CALL_TEST_H_ |
OLD | NEW |