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 2620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2631 } | 2631 } |
2632 | 2632 |
2633 bool CheckSendStats() { | 2633 bool CheckSendStats() { |
2634 RTC_DCHECK(send_stream_ != nullptr); | 2634 RTC_DCHECK(send_stream_ != nullptr); |
2635 VideoSendStream::Stats stats = send_stream_->GetStats(); | 2635 VideoSendStream::Stats stats = send_stream_->GetStats(); |
2636 | 2636 |
2637 send_stats_filled_["NumStreams"] |= | 2637 send_stats_filled_["NumStreams"] |= |
2638 stats.substreams.size() == expected_send_ssrcs_.size(); | 2638 stats.substreams.size() == expected_send_ssrcs_.size(); |
2639 | 2639 |
2640 send_stats_filled_["CpuOveruseMetrics"] |= | 2640 send_stats_filled_["CpuOveruseMetrics"] |= |
2641 stats.avg_encode_time_ms != 0 || stats.encode_usage_percent != 0; | 2641 stats.avg_encode_time_ms != 0 && stats.encode_usage_percent != 0; |
2642 | 2642 |
2643 send_stats_filled_["EncoderImplementationName"] |= | 2643 send_stats_filled_["EncoderImplementationName"] |= |
2644 stats.encoder_implementation_name == | 2644 stats.encoder_implementation_name == |
2645 test::FakeEncoder::kImplementationName; | 2645 test::FakeEncoder::kImplementationName; |
2646 | 2646 |
2647 for (std::map<uint32_t, VideoSendStream::StreamStats>::const_iterator it = | 2647 for (std::map<uint32_t, VideoSendStream::StreamStats>::const_iterator it = |
2648 stats.substreams.begin(); | 2648 stats.substreams.begin(); |
2649 it != stats.substreams.end(); ++it) { | 2649 it != stats.substreams.end(); ++it) { |
2650 EXPECT_TRUE(expected_send_ssrcs_.find(it->first) != | 2650 EXPECT_TRUE(expected_send_ssrcs_.find(it->first) != |
2651 expected_send_ssrcs_.end()); | 2651 expected_send_ssrcs_.end()); |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3499 private: | 3499 private: |
3500 bool video_observed_; | 3500 bool video_observed_; |
3501 bool audio_observed_; | 3501 bool audio_observed_; |
3502 SequenceNumberUnwrapper unwrapper_; | 3502 SequenceNumberUnwrapper unwrapper_; |
3503 std::set<int64_t> received_packet_ids_; | 3503 std::set<int64_t> received_packet_ids_; |
3504 } test; | 3504 } test; |
3505 | 3505 |
3506 RunBaseTest(&test); | 3506 RunBaseTest(&test); |
3507 } | 3507 } |
3508 } // namespace webrtc | 3508 } // namespace webrtc |
OLD | NEW |