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_COMMON_CALL_TEST_H_ | 10 #ifndef WEBRTC_TEST_COMMON_CALL_TEST_H_ |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 static const int kNackRtpHistoryMs; | 45 static const int kNackRtpHistoryMs; |
46 static const int kAbsSendTimeExtensionId; | 46 static const int kAbsSendTimeExtensionId; |
47 | 47 |
48 protected: | 48 protected: |
49 void RunBaseTest(BaseTest* test); | 49 void RunBaseTest(BaseTest* test); |
50 | 50 |
51 void CreateCalls(const Call::Config& sender_config, | 51 void CreateCalls(const Call::Config& sender_config, |
52 const Call::Config& receiver_config); | 52 const Call::Config& receiver_config); |
53 void CreateSenderCall(const Call::Config& config); | 53 void CreateSenderCall(const Call::Config& config); |
54 void CreateReceiverCall(const Call::Config& config); | 54 void CreateReceiverCall(const Call::Config& config); |
| 55 void DestroyCalls(); |
55 | 56 |
56 void CreateSendConfig(size_t num_streams, Transport* send_transport); | 57 void CreateSendConfig(size_t num_streams, Transport* send_transport); |
57 void CreateMatchingReceiveConfigs(Transport* rtcp_send_transport); | 58 void CreateMatchingReceiveConfigs(Transport* rtcp_send_transport); |
58 | 59 |
59 void CreateFrameGeneratorCapturer(); | 60 void CreateFrameGeneratorCapturer(); |
60 | 61 |
61 void CreateStreams(); | 62 void CreateStreams(); |
62 void Start(); | 63 void Start(); |
63 void Stop(); | 64 void Stop(); |
64 void DestroyStreams(); | 65 void DestroyStreams(); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 explicit EndToEndTest(unsigned int timeout_ms); | 120 explicit EndToEndTest(unsigned int timeout_ms); |
120 EndToEndTest(unsigned int timeout_ms, const FakeNetworkPipe::Config& config); | 121 EndToEndTest(unsigned int timeout_ms, const FakeNetworkPipe::Config& config); |
121 | 122 |
122 bool ShouldCreateReceivers() const override; | 123 bool ShouldCreateReceivers() const override; |
123 }; | 124 }; |
124 | 125 |
125 } // namespace test | 126 } // namespace test |
126 } // namespace webrtc | 127 } // namespace webrtc |
127 | 128 |
128 #endif // WEBRTC_TEST_COMMON_CALL_TEST_H_ | 129 #endif // WEBRTC_TEST_COMMON_CALL_TEST_H_ |
OLD | NEW |