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 2636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 } | 2647 } |
2648 | 2648 |
2649 bool CheckSendStats() { | 2649 bool CheckSendStats() { |
2650 RTC_DCHECK(send_stream_ != nullptr); | 2650 RTC_DCHECK(send_stream_ != nullptr); |
2651 VideoSendStream::Stats stats = send_stream_->GetStats(); | 2651 VideoSendStream::Stats stats = send_stream_->GetStats(); |
2652 | 2652 |
2653 send_stats_filled_["NumStreams"] |= | 2653 send_stats_filled_["NumStreams"] |= |
2654 stats.substreams.size() == expected_send_ssrcs_.size(); | 2654 stats.substreams.size() == expected_send_ssrcs_.size(); |
2655 | 2655 |
2656 send_stats_filled_["CpuOveruseMetrics"] |= | 2656 send_stats_filled_["CpuOveruseMetrics"] |= |
2657 stats.avg_encode_time_ms != 0 || stats.encode_usage_percent != 0; | 2657 stats.avg_encode_time_ms != 0 && stats.encode_usage_percent != 0; |
2658 | 2658 |
2659 send_stats_filled_["EncoderImplementationName"] |= | 2659 send_stats_filled_["EncoderImplementationName"] |= |
2660 stats.encoder_implementation_name == | 2660 stats.encoder_implementation_name == |
2661 test::FakeEncoder::kImplementationName; | 2661 test::FakeEncoder::kImplementationName; |
2662 | 2662 |
2663 for (std::map<uint32_t, VideoSendStream::StreamStats>::const_iterator it = | 2663 for (std::map<uint32_t, VideoSendStream::StreamStats>::const_iterator it = |
2664 stats.substreams.begin(); | 2664 stats.substreams.begin(); |
2665 it != stats.substreams.end(); ++it) { | 2665 it != stats.substreams.end(); ++it) { |
2666 EXPECT_TRUE(expected_send_ssrcs_.find(it->first) != | 2666 EXPECT_TRUE(expected_send_ssrcs_.find(it->first) != |
2667 expected_send_ssrcs_.end()); | 2667 expected_send_ssrcs_.end()); |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3515 private: | 3515 private: |
3516 bool video_observed_; | 3516 bool video_observed_; |
3517 bool audio_observed_; | 3517 bool audio_observed_; |
3518 SequenceNumberUnwrapper unwrapper_; | 3518 SequenceNumberUnwrapper unwrapper_; |
3519 std::set<int64_t> received_packet_ids_; | 3519 std::set<int64_t> received_packet_ids_; |
3520 } test; | 3520 } test; |
3521 | 3521 |
3522 RunBaseTest(&test); | 3522 RunBaseTest(&test); |
3523 } | 3523 } |
3524 } // namespace webrtc | 3524 } // namespace webrtc |
OLD | NEW |