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 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2542 EXPECT_TRUE(channel_->GetStats(&info)); | 2542 EXPECT_TRUE(channel_->GetStats(&info)); |
2543 ASSERT_EQ(1U, info.senders.size()); | 2543 ASSERT_EQ(1U, info.senders.size()); |
2544 EXPECT_EQ(3, info.senders[0].adapt_changes); | 2544 EXPECT_EQ(3, info.senders[0].adapt_changes); |
2545 EXPECT_EQ(CoordinatedVideoAdapter::ADAPTREASON_CPU, | 2545 EXPECT_EQ(CoordinatedVideoAdapter::ADAPTREASON_CPU, |
2546 info.senders[0].adapt_reason); | 2546 info.senders[0].adapt_reason); |
2547 | 2547 |
2548 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], NULL)); | 2548 EXPECT_TRUE(channel_->SetCapturer(kSsrcs3[0], NULL)); |
2549 } | 2549 } |
2550 | 2550 |
2551 TEST_F(WebRtcVideoChannel2Test, | 2551 TEST_F(WebRtcVideoChannel2Test, |
| 2552 GetStatsTranslatesBandwidthLimitedResolutionCorrectly) { |
| 2553 FakeVideoSendStream* stream = AddSendStream(); |
| 2554 webrtc::VideoSendStream::Stats stats; |
| 2555 stats.bw_limited_resolution = true; |
| 2556 stream->SetStats(stats); |
| 2557 |
| 2558 cricket::VideoMediaInfo info; |
| 2559 EXPECT_TRUE(channel_->GetStats(&info)); |
| 2560 ASSERT_EQ(1U, info.senders.size()); |
| 2561 EXPECT_EQ(CoordinatedVideoAdapter::ADAPTREASON_BANDWIDTH, |
| 2562 info.senders[0].adapt_reason); |
| 2563 } |
| 2564 |
| 2565 TEST_F(WebRtcVideoChannel2Test, |
2552 GetStatsTranslatesSendRtcpPacketTypesCorrectly) { | 2566 GetStatsTranslatesSendRtcpPacketTypesCorrectly) { |
2553 FakeVideoSendStream* stream = AddSendStream(); | 2567 FakeVideoSendStream* stream = AddSendStream(); |
2554 webrtc::VideoSendStream::Stats stats; | 2568 webrtc::VideoSendStream::Stats stats; |
2555 stats.substreams[17].rtcp_packet_type_counts.fir_packets = 2; | 2569 stats.substreams[17].rtcp_packet_type_counts.fir_packets = 2; |
2556 stats.substreams[17].rtcp_packet_type_counts.nack_packets = 3; | 2570 stats.substreams[17].rtcp_packet_type_counts.nack_packets = 3; |
2557 stats.substreams[17].rtcp_packet_type_counts.pli_packets = 4; | 2571 stats.substreams[17].rtcp_packet_type_counts.pli_packets = 4; |
2558 | 2572 |
2559 stats.substreams[42].rtcp_packet_type_counts.fir_packets = 5; | 2573 stats.substreams[42].rtcp_packet_type_counts.fir_packets = 5; |
2560 stats.substreams[42].rtcp_packet_type_counts.nack_packets = 7; | 2574 stats.substreams[42].rtcp_packet_type_counts.nack_packets = 7; |
2561 stats.substreams[42].rtcp_packet_type_counts.pli_packets = 9; | 2575 stats.substreams[42].rtcp_packet_type_counts.pli_packets = 9; |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3301 // Ensures that the correct settings are applied to the codec when two temporal | 3315 // Ensures that the correct settings are applied to the codec when two temporal |
3302 // layer screencasting is enabled, and that the correct simulcast settings are | 3316 // layer screencasting is enabled, and that the correct simulcast settings are |
3303 // reapplied when disabling screencasting. | 3317 // reapplied when disabling screencasting. |
3304 TEST_F(WebRtcVideoChannel2SimulcastTest, | 3318 TEST_F(WebRtcVideoChannel2SimulcastTest, |
3305 DISABLED_TwoTemporalLayerScreencastSettings) { | 3319 DISABLED_TwoTemporalLayerScreencastSettings) { |
3306 // TODO(pbos): Implement. | 3320 // TODO(pbos): Implement. |
3307 FAIL() << "Not implemented."; | 3321 FAIL() << "Not implemented."; |
3308 } | 3322 } |
3309 | 3323 |
3310 } // namespace cricket | 3324 } // namespace cricket |
OLD | NEW |