OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include <algorithm> | 10 #include <algorithm> |
(...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2626 } | 2626 } |
2627 | 2627 |
2628 bool CheckSendStats() { | 2628 bool CheckSendStats() { |
2629 RTC_DCHECK(send_stream_ != nullptr); | 2629 RTC_DCHECK(send_stream_ != nullptr); |
2630 VideoSendStream::Stats stats = send_stream_->GetStats(); | 2630 VideoSendStream::Stats stats = send_stream_->GetStats(); |
2631 | 2631 |
2632 send_stats_filled_["NumStreams"] |= | 2632 send_stats_filled_["NumStreams"] |= |
2633 stats.substreams.size() == expected_send_ssrcs_.size(); | 2633 stats.substreams.size() == expected_send_ssrcs_.size(); |
2634 | 2634 |
2635 send_stats_filled_["CpuOveruseMetrics"] |= | 2635 send_stats_filled_["CpuOveruseMetrics"] |= |
2636 stats.avg_encode_time_ms != 0 || stats.encode_usage_percent != 0; | 2636 stats.avg_encode_time_ms != 0 && stats.encode_usage_percent != 0; |
2637 | 2637 |
2638 send_stats_filled_["EncoderImplementationName"] |= | 2638 send_stats_filled_["EncoderImplementationName"] |= |
2639 stats.encoder_implementation_name == | 2639 stats.encoder_implementation_name == |
2640 test::FakeEncoder::kImplementationName; | 2640 test::FakeEncoder::kImplementationName; |
2641 | 2641 |
2642 for (std::map<uint32_t, VideoSendStream::StreamStats>::const_iterator it = | 2642 for (std::map<uint32_t, VideoSendStream::StreamStats>::const_iterator it = |
2643 stats.substreams.begin(); | 2643 stats.substreams.begin(); |
2644 it != stats.substreams.end(); ++it) { | 2644 it != stats.substreams.end(); ++it) { |
2645 EXPECT_TRUE(expected_send_ssrcs_.find(it->first) != | 2645 EXPECT_TRUE(expected_send_ssrcs_.find(it->first) != |
2646 expected_send_ssrcs_.end()); | 2646 expected_send_ssrcs_.end()); |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3494 private: | 3494 private: |
3495 bool video_observed_; | 3495 bool video_observed_; |
3496 bool audio_observed_; | 3496 bool audio_observed_; |
3497 SequenceNumberUnwrapper unwrapper_; | 3497 SequenceNumberUnwrapper unwrapper_; |
3498 std::set<int64_t> received_packet_ids_; | 3498 std::set<int64_t> received_packet_ids_; |
3499 } test; | 3499 } test; |
3500 | 3500 |
3501 RunBaseTest(&test); | 3501 RunBaseTest(&test); |
3502 } | 3502 } |
3503 } // namespace webrtc | 3503 } // namespace webrtc |
OLD | NEW |