OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 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 | 10 |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 } | 462 } |
463 verifier->TestMemberIsUndefined(stream.sli_count); | 463 verifier->TestMemberIsUndefined(stream.sli_count); |
464 } | 464 } |
465 | 465 |
466 bool VerifyRTCInboundRTPStreamStats( | 466 bool VerifyRTCInboundRTPStreamStats( |
467 const RTCInboundRTPStreamStats& inbound_stream) { | 467 const RTCInboundRTPStreamStats& inbound_stream) { |
468 RTCStatsVerifier verifier(report_, &inbound_stream); | 468 RTCStatsVerifier verifier(report_, &inbound_stream); |
469 VerifyRTCRTPStreamStats(inbound_stream, &verifier); | 469 VerifyRTCRTPStreamStats(inbound_stream, &verifier); |
470 verifier.TestMemberIsDefined(inbound_stream.packets_received); | 470 verifier.TestMemberIsDefined(inbound_stream.packets_received); |
471 verifier.TestMemberIsDefined(inbound_stream.bytes_received); | 471 verifier.TestMemberIsDefined(inbound_stream.bytes_received); |
472 verifier.TestMemberIsUndefined(inbound_stream.packets_lost); | 472 verifier.TestMemberIsDefined(inbound_stream.packets_lost); |
473 if (inbound_stream.media_type.is_defined() && | 473 if (inbound_stream.media_type.is_defined() && |
474 *inbound_stream.media_type == "video") { | 474 *inbound_stream.media_type == "video") { |
475 verifier.TestMemberIsUndefined(inbound_stream.jitter); | 475 verifier.TestMemberIsUndefined(inbound_stream.jitter); |
476 } else { | 476 } else { |
477 verifier.TestMemberIsDefined(inbound_stream.jitter); | 477 verifier.TestMemberIsDefined(inbound_stream.jitter); |
478 } | 478 } |
479 verifier.TestMemberIsDefined(inbound_stream.fraction_lost); | 479 verifier.TestMemberIsDefined(inbound_stream.fraction_lost); |
480 verifier.TestMemberIsUndefined(inbound_stream.packets_discarded); | 480 verifier.TestMemberIsUndefined(inbound_stream.packets_discarded); |
481 verifier.TestMemberIsUndefined(inbound_stream.packets_repaired); | 481 verifier.TestMemberIsUndefined(inbound_stream.packets_repaired); |
482 verifier.TestMemberIsUndefined(inbound_stream.burst_packets_lost); | 482 verifier.TestMemberIsUndefined(inbound_stream.burst_packets_lost); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 TEST_F(RTCStatsIntegrationTest, GetStatsFromCallee) { | 529 TEST_F(RTCStatsIntegrationTest, GetStatsFromCallee) { |
530 StartCall(); | 530 StartCall(); |
531 | 531 |
532 rtc::scoped_refptr<const RTCStatsReport> report = GetStatsFromCallee(); | 532 rtc::scoped_refptr<const RTCStatsReport> report = GetStatsFromCallee(); |
533 RTCStatsReportVerifier(report.get()).VerifyReport(); | 533 RTCStatsReportVerifier(report.get()).VerifyReport(); |
534 } | 534 } |
535 | 535 |
536 } // namespace | 536 } // namespace |
537 | 537 |
538 } // namespace webrtc | 538 } // namespace webrtc |
OLD | NEW |