Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: webrtc/api/rtcstats_integrationtest.cc

Issue 2610843003: RTC[In/Out]boundRTPStreamStats.mediaTrackId collected. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.h » ('j') | webrtc/api/rtcstatscollector.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 peer_connection.data_channels_closed); 484 peer_connection.data_channels_closed);
485 return verifier.ExpectAllMembersSuccessfullyTested(); 485 return verifier.ExpectAllMembersSuccessfullyTested();
486 } 486 }
487 487
488 void VerifyRTCRTPStreamStats( 488 void VerifyRTCRTPStreamStats(
489 const RTCRTPStreamStats& stream, RTCStatsVerifier* verifier) { 489 const RTCRTPStreamStats& stream, RTCStatsVerifier* verifier) {
490 verifier->TestMemberIsDefined(stream.ssrc); 490 verifier->TestMemberIsDefined(stream.ssrc);
491 verifier->TestMemberIsUndefined(stream.associate_stats_id); 491 verifier->TestMemberIsUndefined(stream.associate_stats_id);
492 verifier->TestMemberIsDefined(stream.is_remote); 492 verifier->TestMemberIsDefined(stream.is_remote);
493 verifier->TestMemberIsDefined(stream.media_type); 493 verifier->TestMemberIsDefined(stream.media_type);
494 verifier->TestMemberIsUndefined(stream.media_track_id); 494 verifier->TestMemberIsIDReference(
495 stream.media_track_id, RTCMediaStreamTrackStats::kType);
495 verifier->TestMemberIsIDReference( 496 verifier->TestMemberIsIDReference(
496 stream.transport_id, RTCTransportStats::kType); 497 stream.transport_id, RTCTransportStats::kType);
497 verifier->TestMemberIsIDReference(stream.codec_id, RTCCodecStats::kType); 498 verifier->TestMemberIsIDReference(stream.codec_id, RTCCodecStats::kType);
498 if (stream.media_type.is_defined() && *stream.media_type == "video") { 499 if (stream.media_type.is_defined() && *stream.media_type == "video") {
499 verifier->TestMemberIsNonNegative<uint32_t>(stream.fir_count); 500 verifier->TestMemberIsNonNegative<uint32_t>(stream.fir_count);
500 verifier->TestMemberIsNonNegative<uint32_t>(stream.pli_count); 501 verifier->TestMemberIsNonNegative<uint32_t>(stream.pli_count);
501 verifier->TestMemberIsNonNegative<uint32_t>(stream.nack_count); 502 verifier->TestMemberIsNonNegative<uint32_t>(stream.nack_count);
502 } else { 503 } else {
503 verifier->TestMemberIsUndefined(stream.fir_count); 504 verifier->TestMemberIsUndefined(stream.fir_count);
504 verifier->TestMemberIsUndefined(stream.pli_count); 505 verifier->TestMemberIsUndefined(stream.pli_count);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 caller_ = nullptr; 612 caller_ = nullptr;
612 // Any pending stats requests should have completed in the act of destroying 613 // Any pending stats requests should have completed in the act of destroying
613 // the peer connection. 614 // the peer connection.
614 EXPECT_TRUE(stats_obtainer->report()); 615 EXPECT_TRUE(stats_obtainer->report());
615 } 616 }
616 #endif // HAVE_SCTP 617 #endif // HAVE_SCTP
617 618
618 } // namespace 619 } // namespace
619 620
620 } // namespace webrtc 621 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.h » ('j') | webrtc/api/rtcstatscollector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698