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_ |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 VoiceEngineState voe_send_; | 143 VoiceEngineState voe_send_; |
144 VoiceEngineState voe_recv_; | 144 VoiceEngineState voe_recv_; |
145 | 145 |
146 // The audio devices must outlive the voice engines. | 146 // The audio devices must outlive the voice engines. |
147 std::unique_ptr<test::FakeAudioDevice> fake_send_audio_device_; | 147 std::unique_ptr<test::FakeAudioDevice> fake_send_audio_device_; |
148 std::unique_ptr<test::FakeAudioDevice> fake_recv_audio_device_; | 148 std::unique_ptr<test::FakeAudioDevice> fake_recv_audio_device_; |
149 }; | 149 }; |
150 | 150 |
151 class BaseTest : public RtpRtcpObserver { | 151 class BaseTest : public RtpRtcpObserver { |
152 public: | 152 public: |
| 153 BaseTest(); |
153 explicit BaseTest(unsigned int timeout_ms); | 154 explicit BaseTest(unsigned int timeout_ms); |
154 virtual ~BaseTest(); | 155 virtual ~BaseTest(); |
155 | 156 |
156 virtual void PerformTest() = 0; | 157 virtual void PerformTest() = 0; |
157 virtual bool ShouldCreateReceivers() const = 0; | 158 virtual bool ShouldCreateReceivers() const = 0; |
158 | 159 |
159 virtual size_t GetNumVideoStreams() const; | 160 virtual size_t GetNumVideoStreams() const; |
160 virtual size_t GetNumAudioStreams() const; | 161 virtual size_t GetNumAudioStreams() const; |
161 virtual size_t GetNumFlexfecStreams() const; | 162 virtual size_t GetNumFlexfecStreams() const; |
162 | 163 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 199 |
199 class SendTest : public BaseTest { | 200 class SendTest : public BaseTest { |
200 public: | 201 public: |
201 explicit SendTest(unsigned int timeout_ms); | 202 explicit SendTest(unsigned int timeout_ms); |
202 | 203 |
203 bool ShouldCreateReceivers() const override; | 204 bool ShouldCreateReceivers() const override; |
204 }; | 205 }; |
205 | 206 |
206 class EndToEndTest : public BaseTest { | 207 class EndToEndTest : public BaseTest { |
207 public: | 208 public: |
| 209 EndToEndTest(); |
208 explicit EndToEndTest(unsigned int timeout_ms); | 210 explicit EndToEndTest(unsigned int timeout_ms); |
209 | 211 |
210 bool ShouldCreateReceivers() const override; | 212 bool ShouldCreateReceivers() const override; |
211 }; | 213 }; |
212 | 214 |
213 } // namespace test | 215 } // namespace test |
214 } // namespace webrtc | 216 } // namespace webrtc |
215 | 217 |
216 #endif // WEBRTC_TEST_CALL_TEST_H_ | 218 #endif // WEBRTC_TEST_CALL_TEST_H_ |
OLD | NEW |