| 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 | 10 |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 const uint32_t CallTest::kSendRtxSsrcs[kNumSsrcs] = {0xBADCAFD, 0xBADCAFE, | 430 const uint32_t CallTest::kSendRtxSsrcs[kNumSsrcs] = {0xBADCAFD, 0xBADCAFE, |
| 431 0xBADCAFF}; | 431 0xBADCAFF}; |
| 432 const uint32_t CallTest::kVideoSendSsrcs[kNumSsrcs] = {0xC0FFED, 0xC0FFEE, | 432 const uint32_t CallTest::kVideoSendSsrcs[kNumSsrcs] = {0xC0FFED, 0xC0FFEE, |
| 433 0xC0FFEF}; | 433 0xC0FFEF}; |
| 434 const uint32_t CallTest::kAudioSendSsrc = 0xDEADBEEF; | 434 const uint32_t CallTest::kAudioSendSsrc = 0xDEADBEEF; |
| 435 const uint32_t CallTest::kFlexfecSendSsrc = 0xBADBEEF; | 435 const uint32_t CallTest::kFlexfecSendSsrc = 0xBADBEEF; |
| 436 const uint32_t CallTest::kReceiverLocalVideoSsrc = 0x123456; | 436 const uint32_t CallTest::kReceiverLocalVideoSsrc = 0x123456; |
| 437 const uint32_t CallTest::kReceiverLocalAudioSsrc = 0x1234567; | 437 const uint32_t CallTest::kReceiverLocalAudioSsrc = 0x1234567; |
| 438 const int CallTest::kNackRtpHistoryMs = 1000; | 438 const int CallTest::kNackRtpHistoryMs = 1000; |
| 439 | 439 |
| 440 const uint8_t CallTest::kDefaultKeepalivePayloadType = |
| 441 RtpKeepAliveConfig().payload_type; |
| 442 |
| 440 const std::map<uint8_t, MediaType> CallTest::payload_type_map_ = { | 443 const std::map<uint8_t, MediaType> CallTest::payload_type_map_ = { |
| 441 {CallTest::kVideoSendPayloadType, MediaType::VIDEO}, | 444 {CallTest::kVideoSendPayloadType, MediaType::VIDEO}, |
| 442 {CallTest::kFakeVideoSendPayloadType, MediaType::VIDEO}, | 445 {CallTest::kFakeVideoSendPayloadType, MediaType::VIDEO}, |
| 443 {CallTest::kSendRtxPayloadType, MediaType::VIDEO}, | 446 {CallTest::kSendRtxPayloadType, MediaType::VIDEO}, |
| 444 {CallTest::kRedPayloadType, MediaType::VIDEO}, | 447 {CallTest::kRedPayloadType, MediaType::VIDEO}, |
| 445 {CallTest::kRtxRedPayloadType, MediaType::VIDEO}, | 448 {CallTest::kRtxRedPayloadType, MediaType::VIDEO}, |
| 446 {CallTest::kUlpfecPayloadType, MediaType::VIDEO}, | 449 {CallTest::kUlpfecPayloadType, MediaType::VIDEO}, |
| 447 {CallTest::kFlexfecPayloadType, MediaType::VIDEO}, | 450 {CallTest::kFlexfecPayloadType, MediaType::VIDEO}, |
| 448 {CallTest::kAudioSendPayloadType, MediaType::AUDIO}}; | 451 {CallTest::kAudioSendPayloadType, MediaType::AUDIO}, |
| 452 {CallTest::kDefaultKeepalivePayloadType, MediaType::ANY}}; |
| 449 | 453 |
| 450 BaseTest::BaseTest() : event_log_(RtcEventLog::CreateNull()) {} | 454 BaseTest::BaseTest() : event_log_(RtcEventLog::CreateNull()) {} |
| 451 | 455 |
| 452 BaseTest::BaseTest(unsigned int timeout_ms) | 456 BaseTest::BaseTest(unsigned int timeout_ms) |
| 453 : RtpRtcpObserver(timeout_ms), event_log_(RtcEventLog::CreateNull()) {} | 457 : RtpRtcpObserver(timeout_ms), event_log_(RtcEventLog::CreateNull()) {} |
| 454 | 458 |
| 455 BaseTest::~BaseTest() { | 459 BaseTest::~BaseTest() { |
| 456 } | 460 } |
| 457 | 461 |
| 458 std::unique_ptr<FakeAudioDevice::Capturer> BaseTest::CreateCapturer() { | 462 std::unique_ptr<FakeAudioDevice::Capturer> BaseTest::CreateCapturer() { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 | 551 |
| 548 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { | 552 EndToEndTest::EndToEndTest(unsigned int timeout_ms) : BaseTest(timeout_ms) { |
| 549 } | 553 } |
| 550 | 554 |
| 551 bool EndToEndTest::ShouldCreateReceivers() const { | 555 bool EndToEndTest::ShouldCreateReceivers() const { |
| 552 return true; | 556 return true; |
| 553 } | 557 } |
| 554 | 558 |
| 555 } // namespace test | 559 } // namespace test |
| 556 } // namespace webrtc | 560 } // namespace webrtc |
| OLD | NEW |