Lines Matching refs:Stats
2453 webrtc::VideoSendStream::Stats stats;
2454 stats.encoder_implementation_name = "encoder_implementation_name";
2455 stream->SetStats(stats);
2459 EXPECT_EQ(stats.encoder_implementation_name,
2465 webrtc::VideoSendStream::Stats stats;
2466 stats.avg_encode_time_ms = 13;
2467 stats.encode_usage_percent = 42;
2468 stream->SetStats(stats);
2472 EXPECT_EQ(stats.avg_encode_time_ms, info.senders[0].avg_encode_ms);
2473 EXPECT_EQ(stats.encode_usage_percent, info.senders[0].encode_usage_percent);
2478 webrtc::VideoSendStream::Stats stats;
2479 stats.substreams[17].width = 123;
2480 stats.substreams[17].height = 40;
2481 stats.substreams[42].width = 80;
2482 stats.substreams[42].height = 31;
2483 stats.substreams[11].width = 20;
2484 stats.substreams[11].height = 90;
2485 stream->SetStats(stats);
2606 // Set bandwidth limitation stats for the stream -> adapt CPU + BW.
2607 webrtc::VideoSendStream::Stats stats;
2608 stats.bw_limited_resolution = true;
2609 fake_call_->GetVideoSendStreams().front()->SetStats(stats);
2627 stats.bw_limited_resolution = false;
2628 fake_call_->GetVideoSendStreams().front()->SetStats(stats);
2641 webrtc::VideoSendStream::Stats stats;
2642 stats.bw_limited_resolution = true;
2643 stream->SetStats(stats);
2655 webrtc::VideoSendStream::Stats stats;
2656 stats.substreams[17].rtcp_packet_type_counts.fir_packets = 2;
2657 stats.substreams[17].rtcp_packet_type_counts.nack_packets = 3;
2658 stats.substreams[17].rtcp_packet_type_counts.pli_packets = 4;
2660 stats.substreams[42].rtcp_packet_type_counts.fir_packets = 5;
2661 stats.substreams[42].rtcp_packet_type_counts.nack_packets = 7;
2662 stats.substreams[42].rtcp_packet_type_counts.pli_packets = 9;
2664 stream->SetStats(stats);
2676 webrtc::VideoReceiveStream::Stats stats;
2677 stats.rtcp_packet_type_counts.fir_packets = 2;
2678 stats.rtcp_packet_type_counts.nack_packets = 3;
2679 stats.rtcp_packet_type_counts.pli_packets = 4;
2680 stream->SetStats(stats);
2684 EXPECT_EQ(stats.rtcp_packet_type_counts.fir_packets,
2686 EXPECT_EQ(stats.rtcp_packet_type_counts.nack_packets,
2688 EXPECT_EQ(stats.rtcp_packet_type_counts.pli_packets,
2694 webrtc::VideoReceiveStream::Stats stats;
2695 stats.decoder_implementation_name = "decoder_implementation_name";
2696 stats.decode_ms = 2;
2697 stats.max_decode_ms = 3;
2698 stats.current_delay_ms = 4;
2699 stats.target_delay_ms = 5;
2700 stats.jitter_buffer_ms = 6;
2701 stats.min_playout_delay_ms = 7;
2702 stats.render_delay_ms = 8;
2703 stream->SetStats(stats);
2707 EXPECT_EQ(stats.decoder_implementation_name,
2709 EXPECT_EQ(stats.decode_ms, info.receivers[0].decode_ms);
2710 EXPECT_EQ(stats.max_decode_ms, info.receivers[0].max_decode_ms);
2711 EXPECT_EQ(stats.current_delay_ms, info.receivers[0].current_delay_ms);
2712 EXPECT_EQ(stats.target_delay_ms, info.receivers[0].target_delay_ms);
2713 EXPECT_EQ(stats.jitter_buffer_ms, info.receivers[0].jitter_buffer_ms);
2714 EXPECT_EQ(stats.min_playout_delay_ms, info.receivers[0].min_playout_delay_ms);
2715 EXPECT_EQ(stats.render_delay_ms, info.receivers[0].render_delay_ms);
2720 webrtc::VideoReceiveStream::Stats stats;
2721 stats.rtp_stats.transmitted.payload_bytes = 2;
2722 stats.rtp_stats.transmitted.header_bytes = 3;
2723 stats.rtp_stats.transmitted.padding_bytes = 4;
2724 stats.rtp_stats.transmitted.packets = 5;
2725 stats.rtcp_stats.cumulative_lost = 6;
2726 stats.rtcp_stats.fraction_lost = 7;
2727 stream->SetStats(stats);
2731 EXPECT_EQ(stats.rtp_stats.transmitted.payload_bytes +
2732 stats.rtp_stats.transmitted.header_bytes +
2733 stats.rtp_stats.transmitted.padding_bytes,
2735 EXPECT_EQ(stats.rtp_stats.transmitted.packets,
2737 EXPECT_EQ(stats.rtcp_stats.cumulative_lost, info.receivers[0].packets_lost);
2738 EXPECT_EQ(static_cast<float>(stats.rtcp_stats.fraction_lost) / (1 << 8),
2745 webrtc::Call::Stats stats;
2746 stats.rtt_ms = 123;
2747 fake_call_->SetStats(stats);
2752 EXPECT_EQ(stats.rtt_ms, info.senders[0].rtt_ms);
2753 EXPECT_EQ(stats.rtt_ms, info.senders[1].rtt_ms);
2758 webrtc::VideoSendStream::Stats stats;
2759 stats.target_media_bitrate_bps = 156;
2760 stats.media_bitrate_bps = 123;
2761 stats.substreams[17].total_bitrate_bps = 1;
2762 stats.substreams[17].retransmit_bitrate_bps = 2;
2763 stats.substreams[42].total_bitrate_bps = 3;
2764 stats.substreams[42].retransmit_bitrate_bps = 4;
2765 stream->SetStats(stats);
2768 webrtc::VideoSendStream::Stats stats2;
2782 EXPECT_EQ(stats.media_bitrate_bps, info.senders[0].nominal_bitrate);
2784 EXPECT_EQ(stats.target_media_bitrate_bps + stats2.target_media_bitrate_bps,
2786 EXPECT_EQ(stats.media_bitrate_bps + stats2.media_bitrate_bps,
2789 << "Bandwidth stats should take all streams into account.";
2791 << "Bandwidth stats should take all streams into account.";
2921 webrtc::VideoReceiveStream::Stats stats;
2925 stream->SetStats(stats);
2930 stats.current_payload_type = kDefaultVp8PlType;
2931 stream->SetStats(stats);
2936 stats.current_payload_type = 3;
2937 stream->SetStats(stats);