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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
440 const std::map<uint8_t, MediaType> CallTest::payload_type_map_ = { | 440 const std::map<uint8_t, MediaType> CallTest::payload_type_map_ = { |
441 {CallTest::kVideoSendPayloadType, MediaType::VIDEO}, | 441 {CallTest::kVideoSendPayloadType, MediaType::VIDEO}, |
442 {CallTest::kFakeVideoSendPayloadType, MediaType::VIDEO}, | 442 {CallTest::kFakeVideoSendPayloadType, MediaType::VIDEO}, |
443 {CallTest::kSendRtxPayloadType, MediaType::VIDEO}, | 443 {CallTest::kSendRtxPayloadType, MediaType::VIDEO}, |
444 {CallTest::kRedPayloadType, MediaType::VIDEO}, | 444 {CallTest::kRedPayloadType, MediaType::VIDEO}, |
445 {CallTest::kRtxRedPayloadType, MediaType::VIDEO}, | 445 {CallTest::kRtxRedPayloadType, MediaType::VIDEO}, |
446 {CallTest::kUlpfecPayloadType, MediaType::VIDEO}, | 446 {CallTest::kUlpfecPayloadType, MediaType::VIDEO}, |
447 {CallTest::kFlexfecPayloadType, MediaType::VIDEO}, | 447 {CallTest::kFlexfecPayloadType, MediaType::VIDEO}, |
448 {CallTest::kAudioSendPayloadType, MediaType::AUDIO}}; | 448 {CallTest::kAudioSendPayloadType, MediaType::AUDIO}}; |
449 | 449 |
450 const int CallTest::kPayloadTypeH264 = 122; | |
philipel
2017/07/10 17:00:50
Codec payload types are dynamically negotiated, ri
ilnik
2017/07/10 17:06:19
Not in the Call test. I think. I am certain, that
sprang_webrtc
2017/07/10 17:29:39
Exactly, these are the constants used in tests, fo
| |
451 const int CallTest::kPayloadTypeVP8 = 123; | |
452 const int CallTest::kPayloadTypeVP9 = 124; | |
tommi
2017/07/11 08:34:47
out of curiosity - should these be enum values? al
ilnik
2017/07/11 08:43:43
Actually, type really should be uint8_t. As for en
tommi
2017/07/11 10:14:45
Assuming they're all mutually exclusive, it would
ilnik
2017/07/11 10:20:59
In fact, most of them are not mutually exclusive:
tommi
2017/07/11 11:41:36
Oh I was thinking mutually exclusive values. Not u
ilnik
2017/07/11 12:20:30
Makes sense. I am making a tracking bug for that r
| |
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() { |
459 return FakeAudioDevice::CreatePulsedNoiseCapturer(256, 48000); | 463 return FakeAudioDevice::CreatePulsedNoiseCapturer(256, 48000); |
(...skipping 87 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 |