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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 static const uint8_t kFlexfecPayloadType; | 51 static const uint8_t kFlexfecPayloadType; |
52 static const uint8_t kAudioSendPayloadType; | 52 static const uint8_t kAudioSendPayloadType; |
53 static const uint32_t kSendRtxSsrcs[kNumSsrcs]; | 53 static const uint32_t kSendRtxSsrcs[kNumSsrcs]; |
54 static const uint32_t kVideoSendSsrcs[kNumSsrcs]; | 54 static const uint32_t kVideoSendSsrcs[kNumSsrcs]; |
55 static const uint32_t kAudioSendSsrc; | 55 static const uint32_t kAudioSendSsrc; |
56 static const uint32_t kFlexfecSendSsrc; | 56 static const uint32_t kFlexfecSendSsrc; |
57 static const uint32_t kReceiverLocalVideoSsrc; | 57 static const uint32_t kReceiverLocalVideoSsrc; |
58 static const uint32_t kReceiverLocalAudioSsrc; | 58 static const uint32_t kReceiverLocalAudioSsrc; |
59 static const int kNackRtpHistoryMs; | 59 static const int kNackRtpHistoryMs; |
60 static const std::map<uint8_t, MediaType> payload_type_map_; | 60 static const std::map<uint8_t, MediaType> payload_type_map_; |
| 61 static const int kPayloadTypeH264; |
| 62 static const int kPayloadTypeVP8; |
| 63 static const int kPayloadTypeVP9; |
61 | 64 |
62 protected: | 65 protected: |
63 // RunBaseTest overwrites the audio_state and the voice_engine of the send and | 66 // RunBaseTest overwrites the audio_state and the voice_engine of the send and |
64 // receive Call configs to simplify test code and avoid having old VoiceEngine | 67 // receive Call configs to simplify test code and avoid having old VoiceEngine |
65 // APIs in the tests. | 68 // APIs in the tests. |
66 void RunBaseTest(BaseTest* test); | 69 void RunBaseTest(BaseTest* test); |
67 | 70 |
68 void CreateCalls(const Call::Config& sender_config, | 71 void CreateCalls(const Call::Config& sender_config, |
69 const Call::Config& receiver_config); | 72 const Call::Config& receiver_config); |
70 void CreateSenderCall(const Call::Config& config); | 73 void CreateSenderCall(const Call::Config& config); |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 EndToEndTest(); | 225 EndToEndTest(); |
223 explicit EndToEndTest(unsigned int timeout_ms); | 226 explicit EndToEndTest(unsigned int timeout_ms); |
224 | 227 |
225 bool ShouldCreateReceivers() const override; | 228 bool ShouldCreateReceivers() const override; |
226 }; | 229 }; |
227 | 230 |
228 } // namespace test | 231 } // namespace test |
229 } // namespace webrtc | 232 } // namespace webrtc |
230 | 233 |
231 #endif // WEBRTC_TEST_CALL_TEST_H_ | 234 #endif // WEBRTC_TEST_CALL_TEST_H_ |
OLD | NEW |