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

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

Issue 2610843003: RTC[In/Out]boundRTPStreamStats.mediaTrackId collected. (Closed)
Patch Set: Rebase with master 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') | no next file with comments »
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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 peer_connection.data_channels_closed); 483 peer_connection.data_channels_closed);
484 return verifier.ExpectAllMembersSuccessfullyTested(); 484 return verifier.ExpectAllMembersSuccessfullyTested();
485 } 485 }
486 486
487 void VerifyRTCRTPStreamStats( 487 void VerifyRTCRTPStreamStats(
488 const RTCRTPStreamStats& stream, RTCStatsVerifier* verifier) { 488 const RTCRTPStreamStats& stream, RTCStatsVerifier* verifier) {
489 verifier->TestMemberIsDefined(stream.ssrc); 489 verifier->TestMemberIsDefined(stream.ssrc);
490 verifier->TestMemberIsUndefined(stream.associate_stats_id); 490 verifier->TestMemberIsUndefined(stream.associate_stats_id);
491 verifier->TestMemberIsDefined(stream.is_remote); 491 verifier->TestMemberIsDefined(stream.is_remote);
492 verifier->TestMemberIsDefined(stream.media_type); 492 verifier->TestMemberIsDefined(stream.media_type);
493 verifier->TestMemberIsUndefined(stream.media_track_id); 493 verifier->TestMemberIsIDReference(
494 stream.media_track_id, RTCMediaStreamTrackStats::kType);
494 verifier->TestMemberIsIDReference( 495 verifier->TestMemberIsIDReference(
495 stream.transport_id, RTCTransportStats::kType); 496 stream.transport_id, RTCTransportStats::kType);
496 verifier->TestMemberIsIDReference(stream.codec_id, RTCCodecStats::kType); 497 verifier->TestMemberIsIDReference(stream.codec_id, RTCCodecStats::kType);
497 if (stream.media_type.is_defined() && *stream.media_type == "video") { 498 if (stream.media_type.is_defined() && *stream.media_type == "video") {
498 verifier->TestMemberIsNonNegative<uint32_t>(stream.fir_count); 499 verifier->TestMemberIsNonNegative<uint32_t>(stream.fir_count);
499 verifier->TestMemberIsNonNegative<uint32_t>(stream.pli_count); 500 verifier->TestMemberIsNonNegative<uint32_t>(stream.pli_count);
500 verifier->TestMemberIsNonNegative<uint32_t>(stream.nack_count); 501 verifier->TestMemberIsNonNegative<uint32_t>(stream.nack_count);
501 } else { 502 } else {
502 verifier->TestMemberIsUndefined(stream.fir_count); 503 verifier->TestMemberIsUndefined(stream.fir_count);
503 verifier->TestMemberIsUndefined(stream.pli_count); 504 verifier->TestMemberIsUndefined(stream.pli_count);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 caller_ = nullptr; 611 caller_ = nullptr;
611 // Any pending stats requests should have completed in the act of destroying 612 // Any pending stats requests should have completed in the act of destroying
612 // the peer connection. 613 // the peer connection.
613 EXPECT_TRUE(stats_obtainer->report()); 614 EXPECT_TRUE(stats_obtainer->report());
614 } 615 }
615 #endif // HAVE_SCTP 616 #endif // HAVE_SCTP
616 617
617 } // namespace 618 } // namespace
618 619
619 } // namespace webrtc 620 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698