OLD | NEW |
---|---|
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
800 WEBRTC_BASE_TEST(GetStatsMultipleRecvStreams); | 800 WEBRTC_BASE_TEST(GetStatsMultipleRecvStreams); |
801 WEBRTC_BASE_TEST(GetStatsMultipleSendStreams); | 801 WEBRTC_BASE_TEST(GetStatsMultipleSendStreams); |
802 | 802 |
803 WEBRTC_BASE_TEST(SetSendBandwidth); | 803 WEBRTC_BASE_TEST(SetSendBandwidth); |
804 | 804 |
805 WEBRTC_BASE_TEST(SetSendSsrc); | 805 WEBRTC_BASE_TEST(SetSendSsrc); |
806 WEBRTC_BASE_TEST(SetSendSsrcAfterSetCodecs); | 806 WEBRTC_BASE_TEST(SetSendSsrcAfterSetCodecs); |
807 | 807 |
808 WEBRTC_BASE_TEST(SetRenderer); | 808 WEBRTC_BASE_TEST(SetRenderer); |
809 | 809 |
810 WEBRTC_DISABLED_BASE_TEST(AddRemoveRecvStreamAndRender); | |
pthatcher1
2016/02/01 18:03:10
This seems like a valuable unit test. Why was it
pbos-webrtc
2016/02/01 18:15:23
No idea why it was disabled before, but I'm not su
| |
811 | |
812 WEBRTC_BASE_TEST(AddRemoveSendStreams); | 810 WEBRTC_BASE_TEST(AddRemoveSendStreams); |
813 | 811 |
814 WEBRTC_BASE_TEST(SimulateConference); | 812 WEBRTC_BASE_TEST(SimulateConference); |
815 | 813 |
816 WEBRTC_BASE_TEST(AddRemoveCapturer); | 814 WEBRTC_BASE_TEST(AddRemoveCapturer); |
817 | 815 |
818 WEBRTC_BASE_TEST(RemoveCapturerWithoutAdd); | 816 WEBRTC_BASE_TEST(RemoveCapturerWithoutAdd); |
819 | 817 |
820 WEBRTC_BASE_TEST(AddRemoveCapturerMultipleSources); | 818 WEBRTC_BASE_TEST(AddRemoveCapturerMultipleSources); |
821 | 819 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
857 } | 855 } |
858 | 856 |
859 TEST_F(WebRtcVideoChannel2BaseTest, TwoStreamsSendAndReceive) { | 857 TEST_F(WebRtcVideoChannel2BaseTest, TwoStreamsSendAndReceive) { |
860 Base::TwoStreamsSendAndReceive(kVp8Codec); | 858 Base::TwoStreamsSendAndReceive(kVp8Codec); |
861 } | 859 } |
862 | 860 |
863 TEST_F(WebRtcVideoChannel2BaseTest, TwoStreamsReUseFirstStream) { | 861 TEST_F(WebRtcVideoChannel2BaseTest, TwoStreamsReUseFirstStream) { |
864 Base::TwoStreamsReUseFirstStream(kVp8Codec); | 862 Base::TwoStreamsReUseFirstStream(kVp8Codec); |
865 } | 863 } |
866 | 864 |
867 // TODO(pbos): Enable and figure out why this fails (or should work). | |
868 TEST_F(WebRtcVideoChannel2BaseTest, DISABLED_SendVp8HdAndReceiveAdaptedVp8Vga) { | |
869 EXPECT_TRUE(channel_->SetCapturer(kSsrc, NULL)); | |
870 EXPECT_TRUE(channel_->SetRenderer(kDefaultReceiveSsrc, &renderer_)); | |
871 channel_->UpdateAspectRatio(1280, 720); | |
872 video_capturer_.reset(new cricket::FakeVideoCapturer); | |
873 const std::vector<cricket::VideoFormat>* formats = | |
874 video_capturer_->GetSupportedFormats(); | |
875 cricket::VideoFormat capture_format_hd = (*formats)[0]; | |
876 EXPECT_EQ(cricket::CS_RUNNING, video_capturer_->Start(capture_format_hd)); | |
877 EXPECT_TRUE(channel_->SetCapturer(kSsrc, video_capturer_.get())); | |
878 | |
879 // Capture format HD -> adapt (OnOutputFormatRequest VGA) -> VGA. | |
880 cricket::VideoCodec codec = kVp8Codec720p; | |
881 EXPECT_TRUE(SetOneCodec(codec)); | |
882 codec.width /= 2; | |
883 codec.height /= 2; | |
884 EXPECT_TRUE(SetSend(true)); | |
885 EXPECT_EQ(0, renderer_.num_rendered_frames()); | |
886 EXPECT_TRUE(SendFrame()); | |
887 EXPECT_FRAME_WAIT(1, codec.width, codec.height, kTimeout); | |
888 } | |
889 | |
890 class WebRtcVideoChannel2Test : public WebRtcVideoEngine2Test { | 865 class WebRtcVideoChannel2Test : public WebRtcVideoEngine2Test { |
891 public: | 866 public: |
892 WebRtcVideoChannel2Test() : WebRtcVideoChannel2Test("") {} | 867 WebRtcVideoChannel2Test() : WebRtcVideoChannel2Test("") {} |
893 explicit WebRtcVideoChannel2Test(const char* field_trials) | 868 explicit WebRtcVideoChannel2Test(const char* field_trials) |
894 : WebRtcVideoEngine2Test(field_trials), last_ssrc_(0) {} | 869 : WebRtcVideoEngine2Test(field_trials), last_ssrc_(0) {} |
895 void SetUp() override { | 870 void SetUp() override { |
896 fake_call_.reset(new FakeCall(webrtc::Call::Config())); | 871 fake_call_.reset(new FakeCall(webrtc::Call::Config())); |
897 engine_.Init(); | 872 engine_.Init(); |
898 channel_.reset( | 873 channel_.reset( |
899 engine_.CreateChannel(fake_call_.get(), cricket::VideoOptions())); | 874 engine_.CreateChannel(fake_call_.get(), cricket::VideoOptions())); |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1385 EXPECT_FALSE(channel_->SetRecvParameters(recv_parameters_)); | 1360 EXPECT_FALSE(channel_->SetRecvParameters(recv_parameters_)); |
1386 | 1361 |
1387 // Duplicate entries are also not supported. | 1362 // Duplicate entries are also not supported. |
1388 recv_parameters_.extensions.clear(); | 1363 recv_parameters_.extensions.clear(); |
1389 recv_parameters_.extensions.push_back( | 1364 recv_parameters_.extensions.push_back( |
1390 cricket::RtpHeaderExtension(webrtc::RtpExtension::kTOffset, id)); | 1365 cricket::RtpHeaderExtension(webrtc::RtpExtension::kTOffset, id)); |
1391 recv_parameters_.extensions.push_back(recv_parameters_.extensions.back()); | 1366 recv_parameters_.extensions.push_back(recv_parameters_.extensions.back()); |
1392 EXPECT_FALSE(channel_->SetRecvParameters(recv_parameters_)); | 1367 EXPECT_FALSE(channel_->SetRecvParameters(recv_parameters_)); |
1393 } | 1368 } |
1394 | 1369 |
1395 TEST_F(WebRtcVideoChannel2Test, DISABLED_LeakyBucketTest) { | |
1396 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1397 } | |
pthatcher1
2016/02/01 18:03:10
Are we sure we want to never have unit tests for a
pbos-webrtc
2016/02/01 18:15:23
A lot of these (leaky bucket for instance) are no
| |
1398 | |
1399 TEST_F(WebRtcVideoChannel2Test, DISABLED_BufferedModeLatency) { | |
1400 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1401 } | |
1402 | |
1403 TEST_F(WebRtcVideoChannel2Test, DISABLED_AdditiveVideoOptions) { | |
1404 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1405 } | |
1406 | |
1407 TEST_F(WebRtcVideoChannel2Test, AddRecvStreamOnlyUsesOneReceiveStream) { | 1370 TEST_F(WebRtcVideoChannel2Test, AddRecvStreamOnlyUsesOneReceiveStream) { |
1408 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1))); | 1371 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(1))); |
1409 EXPECT_EQ(1u, fake_call_->GetVideoReceiveStreams().size()); | 1372 EXPECT_EQ(1u, fake_call_->GetVideoReceiveStreams().size()); |
1410 } | 1373 } |
1411 | 1374 |
1412 TEST_F(WebRtcVideoChannel2Test, RtcpIsCompoundByDefault) { | 1375 TEST_F(WebRtcVideoChannel2Test, RtcpIsCompoundByDefault) { |
1413 FakeVideoReceiveStream* stream = AddRecvStream(); | 1376 FakeVideoReceiveStream* stream = AddRecvStream(); |
1414 EXPECT_EQ(webrtc::RtcpMode::kCompound, stream->GetConfig().rtp.rtcp_mode); | 1377 EXPECT_EQ(webrtc::RtcpMode::kCompound, stream->GetConfig().rtp.rtcp_mode); |
1415 } | 1378 } |
1416 | 1379 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1508 // Verify that NACK is turned on when setting default codecs since the | 1471 // Verify that NACK is turned on when setting default codecs since the |
1509 // default codecs have NACK enabled. | 1472 // default codecs have NACK enabled. |
1510 parameters.codecs = engine_.codecs(); | 1473 parameters.codecs = engine_.codecs(); |
1511 EXPECT_TRUE(channel_->SetSendParameters(parameters)); | 1474 EXPECT_TRUE(channel_->SetSendParameters(parameters)); |
1512 recv_stream = fake_call_->GetVideoReceiveStreams()[0]; | 1475 recv_stream = fake_call_->GetVideoReceiveStreams()[0]; |
1513 EXPECT_GT(recv_stream->GetConfig().rtp.nack.rtp_history_ms, 0); | 1476 EXPECT_GT(recv_stream->GetConfig().rtp.nack.rtp_history_ms, 0); |
1514 send_stream = fake_call_->GetVideoSendStreams()[0]; | 1477 send_stream = fake_call_->GetVideoSendStreams()[0]; |
1515 EXPECT_GT(send_stream->GetConfig().rtp.nack.rtp_history_ms, 0); | 1478 EXPECT_GT(send_stream->GetConfig().rtp.nack.rtp_history_ms, 0); |
1516 } | 1479 } |
1517 | 1480 |
1518 TEST_F(WebRtcVideoChannel2Test, DISABLED_VideoProtectionInterop) { | |
1519 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1520 } | |
1521 | |
1522 TEST_F(WebRtcVideoChannel2Test, DISABLED_VideoProtectionInteropReversed) { | |
1523 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1524 } | |
1525 | |
1526 TEST_F(WebRtcVideoChannel2Test, DISABLED_HybridNackFecConference) { | |
1527 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1528 } | |
1529 | |
1530 TEST_F(WebRtcVideoChannel2Test, DISABLED_AddRemoveRecvStreamConference) { | |
1531 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1532 } | |
1533 | |
1534 TEST_F(WebRtcVideoChannel2Test, DISABLED_SetBandwidthAuto) { | |
1535 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1536 } | |
1537 | |
1538 TEST_F(WebRtcVideoChannel2Test, DISABLED_SetBandwidthAutoCapped) { | |
1539 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1540 } | |
1541 | |
1542 TEST_F(WebRtcVideoChannel2Test, DISABLED_SetBandwidthFixed) { | |
1543 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1544 } | |
1545 | |
1546 TEST_F(WebRtcVideoChannel2Test, DISABLED_SetBandwidthInConference) { | |
1547 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1548 } | |
1549 | |
1550 TEST_F(WebRtcVideoChannel2Test, UsesCorrectSettingsForScreencast) { | 1481 TEST_F(WebRtcVideoChannel2Test, UsesCorrectSettingsForScreencast) { |
1551 static const int kScreenshareMinBitrateKbps = 800; | 1482 static const int kScreenshareMinBitrateKbps = 800; |
1552 cricket::VideoCodec codec = kVp8Codec360p; | 1483 cricket::VideoCodec codec = kVp8Codec360p; |
1553 cricket::VideoSendParameters parameters; | 1484 cricket::VideoSendParameters parameters; |
1554 parameters.codecs.push_back(codec); | 1485 parameters.codecs.push_back(codec); |
1555 parameters.options.screencast_min_bitrate_kbps = | 1486 parameters.options.screencast_min_bitrate_kbps = |
1556 rtc::Optional<int>(kScreenshareMinBitrateKbps); | 1487 rtc::Optional<int>(kScreenshareMinBitrateKbps); |
1557 EXPECT_TRUE(channel_->SetSendParameters(parameters)); | 1488 EXPECT_TRUE(channel_->SetSendParameters(parameters)); |
1558 | 1489 |
1559 AddSendStream(); | 1490 AddSendStream(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1632 EXPECT_EQ(webrtc::VideoEncoderConfig::ContentType::kScreen, | 1563 EXPECT_EQ(webrtc::VideoEncoderConfig::ContentType::kScreen, |
1633 encoder_config.content_type); | 1564 encoder_config.content_type); |
1634 ASSERT_EQ(1u, encoder_config.streams.size()); | 1565 ASSERT_EQ(1u, encoder_config.streams.size()); |
1635 ASSERT_EQ(1u, encoder_config.streams[0].temporal_layer_thresholds_bps.size()); | 1566 ASSERT_EQ(1u, encoder_config.streams[0].temporal_layer_thresholds_bps.size()); |
1636 EXPECT_EQ(kConferenceScreencastTemporalBitrateBps, | 1567 EXPECT_EQ(kConferenceScreencastTemporalBitrateBps, |
1637 encoder_config.streams[0].temporal_layer_thresholds_bps[0]); | 1568 encoder_config.streams[0].temporal_layer_thresholds_bps[0]); |
1638 | 1569 |
1639 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL)); | 1570 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL)); |
1640 } | 1571 } |
1641 | 1572 |
1642 TEST_F(WebRtcVideoChannel2Test, DISABLED_SetSendSsrcAndCname) { | |
1643 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1644 } | |
1645 | |
1646 TEST_F(WebRtcVideoChannel2Test, | |
1647 DISABLED_SetSendSsrcAfterCreatingReceiveChannel) { | |
1648 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1649 } | |
1650 | |
1651 TEST_F(WebRtcVideoChannel2Test, SuspendBelowMinBitrateDisabledByDefault) { | 1573 TEST_F(WebRtcVideoChannel2Test, SuspendBelowMinBitrateDisabledByDefault) { |
1652 FakeVideoSendStream* stream = AddSendStream(); | 1574 FakeVideoSendStream* stream = AddSendStream(); |
1653 EXPECT_FALSE(stream->GetConfig().suspend_below_min_bitrate); | 1575 EXPECT_FALSE(stream->GetConfig().suspend_below_min_bitrate); |
1654 } | 1576 } |
1655 | 1577 |
1656 TEST_F(WebRtcVideoChannel2Test, SetOptionsWithSuspendBelowMinBitrate) { | 1578 TEST_F(WebRtcVideoChannel2Test, SetOptionsWithSuspendBelowMinBitrate) { |
1657 send_parameters_.options.suspend_below_min_bitrate = | 1579 send_parameters_.options.suspend_below_min_bitrate = |
1658 rtc::Optional<bool>(true); | 1580 rtc::Optional<bool>(true); |
1659 channel_->SetSendParameters(send_parameters_); | 1581 channel_->SetSendParameters(send_parameters_); |
1660 | 1582 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1817 | 1739 |
1818 stream = SetDenoisingOption(parameters, false); | 1740 stream = SetDenoisingOption(parameters, false); |
1819 | 1741 |
1820 ASSERT_TRUE(stream->GetVp9Settings(&vp9_settings)) << "No VP9 config set."; | 1742 ASSERT_TRUE(stream->GetVp9Settings(&vp9_settings)) << "No VP9 config set."; |
1821 EXPECT_FALSE(vp9_settings.denoisingOn); | 1743 EXPECT_FALSE(vp9_settings.denoisingOn); |
1822 EXPECT_FALSE(vp9_settings.frameDroppingOn); | 1744 EXPECT_FALSE(vp9_settings.frameDroppingOn); |
1823 | 1745 |
1824 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL)); | 1746 EXPECT_TRUE(channel_->SetCapturer(last_ssrc_, NULL)); |
1825 } | 1747 } |
1826 | 1748 |
1827 TEST_F(WebRtcVideoChannel2Test, DISABLED_MultipleSendStreamsWithOneCapturer) { | |
1828 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1829 } | |
1830 | |
1831 TEST_F(WebRtcVideoChannel2Test, DISABLED_SendReceiveBitratesStats) { | |
1832 FAIL() << "Not implemented."; // TODO(pbos): Implement. | |
1833 } | |
1834 | |
1835 TEST_F(WebRtcVideoChannel2Test, AdaptsOnOveruse) { | 1749 TEST_F(WebRtcVideoChannel2Test, AdaptsOnOveruse) { |
1836 TestCpuAdaptation(true, false); | 1750 TestCpuAdaptation(true, false); |
1837 } | 1751 } |
1838 | 1752 |
1839 TEST_F(WebRtcVideoChannel2Test, DoesNotAdaptOnOveruseWhenDisabled) { | 1753 TEST_F(WebRtcVideoChannel2Test, DoesNotAdaptOnOveruseWhenDisabled) { |
1840 TestCpuAdaptation(false, false); | 1754 TestCpuAdaptation(false, false); |
1841 } | 1755 } |
1842 | 1756 |
1843 TEST_F(WebRtcVideoChannel2Test, DoesNotAdaptOnOveruseWhenScreensharing) { | 1757 TEST_F(WebRtcVideoChannel2Test, DoesNotAdaptOnOveruseWhenScreensharing) { |
1844 TestCpuAdaptation(true, true); | 1758 TestCpuAdaptation(true, true); |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3040 } | 2954 } |
3041 | 2955 |
3042 TEST_F(WebRtcVideoChannel2Test, ConfiguresLocalSsrc) { | 2956 TEST_F(WebRtcVideoChannel2Test, ConfiguresLocalSsrc) { |
3043 TestReceiverLocalSsrcConfiguration(false); | 2957 TestReceiverLocalSsrcConfiguration(false); |
3044 } | 2958 } |
3045 | 2959 |
3046 TEST_F(WebRtcVideoChannel2Test, ConfiguresLocalSsrcOnExistingReceivers) { | 2960 TEST_F(WebRtcVideoChannel2Test, ConfiguresLocalSsrcOnExistingReceivers) { |
3047 TestReceiverLocalSsrcConfiguration(true); | 2961 TestReceiverLocalSsrcConfiguration(true); |
3048 } | 2962 } |
3049 | 2963 |
3050 class WebRtcVideoEngine2SimulcastTest : public testing::Test {}; | |
3051 | |
3052 // Test that if we add a stream with RTX SSRC's, SSRC's get set correctly. | |
3053 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_TestStreamWithRtx) { | |
3054 // TODO(pbos): Implement. | |
3055 FAIL() << "Not implemented."; | |
3056 } | |
3057 | |
3058 // Test that if we get too few ssrcs are given in AddSendStream(), | |
3059 // only supported sub-streams will be added. | |
3060 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_TooFewSimulcastSsrcs) { | |
3061 // TODO(pbos): Implement. | |
3062 FAIL() << "Not implemented."; | |
3063 } | |
3064 | |
3065 // Test that even more than enough ssrcs are given in AddSendStream(), | |
3066 // only supported sub-streams will be added. | |
3067 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_MoreThanEnoughSimulcastSscrs) { | |
3068 // TODO(pbos): Implement. | |
3069 FAIL() << "Not implemented."; | |
3070 } | |
3071 | |
3072 // Test that SetSendStreamFormat works well with simulcast. | |
3073 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3074 DISABLED_SetSendStreamFormatWithSimulcast) { | |
3075 // TODO(pbos): Implement. | |
3076 FAIL() << "Not implemented."; | |
3077 } | |
3078 | |
3079 // Test that simulcast send codec is reset on new video frame size. | |
3080 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3081 DISABLED_ResetSimulcastSendCodecOnNewFrameSize) { | |
3082 // TODO(pbos): Implement. | |
3083 FAIL() << "Not implemented."; | |
3084 } | |
3085 | |
3086 // Test that simulcast send codec is reset on new portait mode video frame. | |
3087 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3088 DISABLED_ResetSimulcastSendCodecOnNewPortaitFrame) { | |
3089 // TODO(pbos): Implement. | |
3090 FAIL() << "Not implemented."; | |
3091 } | |
3092 | |
3093 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3094 DISABLED_SetBandwidthInConferenceWithSimulcast) { | |
3095 // TODO(pbos): Implement. | |
3096 FAIL() << "Not implemented."; | |
3097 } | |
3098 | |
3099 // Test that sending screencast frames in conference mode changes | |
3100 // bitrate. | |
3101 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3102 DISABLED_SetBandwidthScreencastInConference) { | |
3103 // TODO(pbos): Implement. | |
3104 FAIL() << "Not implemented."; | |
3105 } | |
3106 | |
3107 // Test AddSendStream with simulcast rejects bad StreamParams. | |
3108 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3109 DISABLED_AddSendStreamWithBadStreamParams) { | |
3110 // TODO(pbos): Implement. | |
3111 FAIL() << "Not implemented."; | |
3112 } | |
3113 | |
3114 // Test AddSendStream with simulcast sets ssrc and cname correctly. | |
3115 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_AddSendStreamWithSimulcast) { | |
3116 // TODO(pbos): Implement. | |
3117 FAIL() << "Not implemented."; | |
3118 } | |
3119 | |
3120 // Test RemoveSendStream with simulcast. | |
3121 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3122 DISABLED_RemoveSendStreamWithSimulcast) { | |
3123 // TODO(pbos): Implement. | |
3124 FAIL() << "Not implemented."; | |
3125 } | |
3126 | |
3127 // Test AddSendStream after send codec has already been set will reset | |
3128 // send codec with simulcast settings. | |
3129 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3130 DISABLED_AddSimulcastStreamAfterSetSendCodec) { | |
3131 // TODO(pbos): Implement. | |
3132 FAIL() << "Not implemented."; | |
3133 } | |
3134 | |
3135 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_GetStatsWithMultipleSsrcs) { | |
3136 // TODO(pbos): Implement. | |
3137 FAIL() << "Not implemented."; | |
3138 } | |
3139 | |
3140 // Test receiving channel(s) local ssrc is set to the same as the first | |
3141 // simulcast sending ssrc. | |
3142 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3143 DISABLED_AddSimulcastStreamAfterCreatingRecvChannels) { | |
3144 // TODO(pbos): Implement. | |
3145 FAIL() << "Not implemented."; | |
3146 } | |
3147 | |
3148 // Test 1:1 call never turn on simulcast. | |
3149 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_NoSimulcastWith1on1) { | |
3150 // TODO(pbos): Implement. | |
3151 FAIL() << "Not implemented."; | |
3152 } | |
3153 | |
3154 // Test SetOptions with conference mode. | |
3155 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_SetOptionsWithConferenceMode) { | |
3156 // TODO(pbos): Implement. | |
3157 FAIL() << "Not implemented."; | |
3158 } | |
3159 | |
3160 // Test that two different streams can have different formats. | |
3161 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3162 DISABLED_MultipleSendStreamsDifferentFormats) { | |
3163 // TODO(pbos): Implement. | |
3164 FAIL() << "Not implemented."; | |
3165 } | |
3166 | |
3167 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_TestAdaptToOutputFormat) { | |
3168 // TODO(pbos): Implement. | |
3169 FAIL() << "Not implemented."; | |
3170 } | |
3171 | |
3172 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3173 DISABLED_TestAdaptWithCpuOveruseObserver) { | |
3174 // TODO(pbos): Implement. | |
3175 FAIL() << "Not implemented."; | |
3176 } | |
3177 | |
3178 // Test that codec is not reset for every frame sent in non-conference and | |
3179 // non-screencast mode. | |
3180 TEST_F(WebRtcVideoEngine2SimulcastTest, DISABLED_DontResetCodecOnSendFrame) { | |
3181 // TODO(pbos): Implement. | |
3182 FAIL() << "Not implemented."; | |
3183 } | |
3184 | |
3185 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3186 DISABLED_UseSimulcastAdapterOnVp8OnlyFactory) { | |
3187 // TODO(pbos): Implement. | |
3188 FAIL() << "Not implemented."; | |
3189 } | |
3190 | |
3191 TEST_F(WebRtcVideoEngine2SimulcastTest, | |
3192 DISABLED_DontUseSimulcastAdapterOnNonVp8Factory) { | |
3193 // TODO(pbos): Implement. | |
3194 FAIL() << "Not implemented."; | |
3195 } | |
3196 | |
3197 class WebRtcVideoChannel2SimulcastTest : public testing::Test { | 2964 class WebRtcVideoChannel2SimulcastTest : public testing::Test { |
3198 public: | 2965 public: |
3199 WebRtcVideoChannel2SimulcastTest() : fake_call_(webrtc::Call::Config()) {} | 2966 WebRtcVideoChannel2SimulcastTest() : fake_call_(webrtc::Call::Config()) {} |
3200 | 2967 |
3201 void SetUp() override { | 2968 void SetUp() override { |
3202 engine_.Init(); | 2969 engine_.Init(); |
3203 channel_.reset(engine_.CreateChannel(&fake_call_, VideoOptions())); | 2970 channel_.reset(engine_.CreateChannel(&fake_call_, VideoOptions())); |
3204 last_ssrc_ = 123; | 2971 last_ssrc_ = 123; |
3205 } | 2972 } |
3206 | 2973 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3327 VerifySimulcastSettings(kVp8Codec720p, 3, 3); | 3094 VerifySimulcastSettings(kVp8Codec720p, 3, 3); |
3328 } | 3095 } |
3329 | 3096 |
3330 // Test that we normalize send codec format size in simulcast. | 3097 // Test that we normalize send codec format size in simulcast. |
3331 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsWithOddSizeInSimulcast) { | 3098 TEST_F(WebRtcVideoChannel2SimulcastTest, SetSendCodecsWithOddSizeInSimulcast) { |
3332 cricket::VideoCodec codec(kVp8Codec270p); | 3099 cricket::VideoCodec codec(kVp8Codec270p); |
3333 codec.width += 1; | 3100 codec.width += 1; |
3334 codec.height += 1; | 3101 codec.height += 1; |
3335 VerifySimulcastSettings(codec, 2, 2); | 3102 VerifySimulcastSettings(codec, 2, 2); |
3336 } | 3103 } |
3337 | |
3338 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_1280x800) { | |
3339 // TODO(pbos): Implement. | |
3340 FAIL() << "Not implemented."; | |
3341 } | |
3342 | |
3343 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_1280x720) { | |
3344 // TODO(pbos): Implement. | |
3345 FAIL() << "Not implemented."; | |
3346 } | |
3347 | |
3348 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_960x540) { | |
3349 // TODO(pbos): Implement. | |
3350 FAIL() << "Not implemented."; | |
3351 } | |
3352 | |
3353 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_960x600) { | |
3354 // TODO(pbos): Implement. | |
3355 FAIL() << "Not implemented."; | |
3356 } | |
3357 | |
3358 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_640x400) { | |
3359 // TODO(pbos): Implement. | |
3360 FAIL() << "Not implemented."; | |
3361 } | |
3362 | |
3363 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_640x360) { | |
3364 // TODO(pbos): Implement. | |
3365 FAIL() << "Not implemented."; | |
3366 } | |
3367 | |
3368 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_480x300) { | |
3369 // TODO(pbos): Implement. | |
3370 FAIL() << "Not implemented."; | |
3371 } | |
3372 | |
3373 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_480x270) { | |
3374 // TODO(pbos): Implement. | |
3375 FAIL() << "Not implemented."; | |
3376 } | |
3377 | |
3378 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_320x200) { | |
3379 // TODO(pbos): Implement. | |
3380 FAIL() << "Not implemented."; | |
3381 } | |
3382 | |
3383 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastSend_320x180) { | |
3384 // TODO(pbos): Implement. | |
3385 FAIL() << "Not implemented."; | |
3386 } | |
3387 | |
3388 // Test simulcast streams are decodeable with expected sizes. | |
3389 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_SimulcastStreams) { | |
3390 // TODO(pbos): Implement. | |
3391 FAIL() << "Not implemented."; | |
3392 } | |
3393 | |
3394 // Simulcast and resolution resizing should be turned off when screencasting | |
3395 // but not otherwise. | |
3396 TEST_F(WebRtcVideoChannel2SimulcastTest, DISABLED_ScreencastRendering) { | |
3397 // TODO(pbos): Implement. | |
3398 FAIL() << "Not implemented."; | |
3399 } | |
3400 | |
3401 // Ensures that the correct settings are applied to the codec when single | |
3402 // temporal layer screencasting is enabled, and that the correct simulcast | |
3403 // settings are reapplied when disabling screencasting. | |
3404 TEST_F(WebRtcVideoChannel2SimulcastTest, | |
3405 DISABLED_OneTemporalLayerScreencastSettings) { | |
3406 // TODO(pbos): Implement. | |
3407 FAIL() << "Not implemented."; | |
3408 } | |
3409 | |
3410 // Ensures that the correct settings are applied to the codec when two temporal | |
3411 // layer screencasting is enabled, and that the correct simulcast settings are | |
3412 // reapplied when disabling screencasting. | |
3413 TEST_F(WebRtcVideoChannel2SimulcastTest, | |
3414 DISABLED_TwoTemporalLayerScreencastSettings) { | |
3415 // TODO(pbos): Implement. | |
3416 FAIL() << "Not implemented."; | |
3417 } | |
3418 | |
3419 } // namespace cricket | 3104 } // namespace cricket |
3420 | 3105 |
3421 #endif // HAVE_WEBRTC_VIDEO | 3106 #endif // HAVE_WEBRTC_VIDEO |
OLD | NEW |