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

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

Issue 2605033002: RTCMediaStreamTrackStats.ssrcIds collected by RTCStatsCollector. (Closed)
Patch Set: Rebase with master (reupload from other machine to create dependent patchset) 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
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 return verifier.ExpectAllMembersSuccessfullyTested(); 382 return verifier.ExpectAllMembersSuccessfullyTested();
383 } 383 }
384 384
385 bool VerifyRTCMediaStreamTrackStats( 385 bool VerifyRTCMediaStreamTrackStats(
386 const RTCMediaStreamTrackStats& media_stream_track) { 386 const RTCMediaStreamTrackStats& media_stream_track) {
387 RTCStatsVerifier verifier(report_, &media_stream_track); 387 RTCStatsVerifier verifier(report_, &media_stream_track);
388 verifier.TestMemberIsDefined(media_stream_track.track_identifier); 388 verifier.TestMemberIsDefined(media_stream_track.track_identifier);
389 verifier.TestMemberIsDefined(media_stream_track.remote_source); 389 verifier.TestMemberIsDefined(media_stream_track.remote_source);
390 verifier.TestMemberIsDefined(media_stream_track.ended); 390 verifier.TestMemberIsDefined(media_stream_track.ended);
391 verifier.TestMemberIsDefined(media_stream_track.detached); 391 verifier.TestMemberIsDefined(media_stream_track.detached);
392 verifier.TestMemberIsUndefined(media_stream_track.ssrc_ids); 392 verifier.TestMemberIsDefined(media_stream_track.ssrc_ids);
393 // Video or audio media stream track? 393 // Video or audio media stream track?
394 if (media_stream_track.frame_width.is_defined()) { 394 if (media_stream_track.frame_width.is_defined()) {
395 // Video-only members 395 // Video-only members
396 verifier.TestMemberIsDefined(media_stream_track.frame_width); 396 verifier.TestMemberIsDefined(media_stream_track.frame_width);
397 verifier.TestMemberIsDefined(media_stream_track.frame_height); 397 verifier.TestMemberIsDefined(media_stream_track.frame_height);
398 verifier.TestMemberIsUndefined(media_stream_track.frames_per_second); 398 verifier.TestMemberIsUndefined(media_stream_track.frames_per_second);
399 verifier.TestMemberIsUndefined(media_stream_track.frames_sent); 399 verifier.TestMemberIsUndefined(media_stream_track.frames_sent);
400 verifier.TestMemberIsUndefined(media_stream_track.frames_received); 400 verifier.TestMemberIsUndefined(media_stream_track.frames_received);
401 verifier.TestMemberIsUndefined(media_stream_track.frames_decoded); 401 verifier.TestMemberIsUndefined(media_stream_track.frames_decoded);
402 verifier.TestMemberIsUndefined(media_stream_track.frames_dropped); 402 verifier.TestMemberIsUndefined(media_stream_track.frames_dropped);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 caller_ = nullptr; 548 caller_ = nullptr;
549 // Any pending stats requests should have completed in the act of destroying 549 // Any pending stats requests should have completed in the act of destroying
550 // the peer connection. 550 // the peer connection.
551 EXPECT_TRUE(stats_obtainer->report()); 551 EXPECT_TRUE(stats_obtainer->report());
552 } 552 }
553 #endif // HAVE_SCTP 553 #endif // HAVE_SCTP
554 554
555 } // namespace 555 } // namespace
556 556
557 } // namespace webrtc 557 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698