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