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

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

Issue 2602033002: RTCMediaStreamTrackStats.frameWidth/Height,framesPerSecond,framesDecoded (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.cc » ('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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.TestMemberIsDefined(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.TestMemberIsDefined(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 if (media_stream_track.remote_source.is_defined() &&
402 *media_stream_track.remote_source) {
403 verifier.TestMemberIsDefined(media_stream_track.frames_decoded);
404 } else {
405 verifier.TestMemberIsUndefined(media_stream_track.frames_decoded);
406 }
402 verifier.TestMemberIsUndefined(media_stream_track.frames_dropped); 407 verifier.TestMemberIsUndefined(media_stream_track.frames_dropped);
403 verifier.TestMemberIsUndefined(media_stream_track.frames_corrupted); 408 verifier.TestMemberIsUndefined(media_stream_track.frames_corrupted);
404 verifier.TestMemberIsUndefined(media_stream_track.partial_frames_lost); 409 verifier.TestMemberIsUndefined(media_stream_track.partial_frames_lost);
405 verifier.TestMemberIsUndefined(media_stream_track.full_frames_lost); 410 verifier.TestMemberIsUndefined(media_stream_track.full_frames_lost);
406 // Audio-only members should be undefined 411 // Audio-only members should be undefined
407 verifier.TestMemberIsUndefined(media_stream_track.audio_level); 412 verifier.TestMemberIsUndefined(media_stream_track.audio_level);
408 verifier.TestMemberIsUndefined(media_stream_track.echo_return_loss); 413 verifier.TestMemberIsUndefined(media_stream_track.echo_return_loss);
409 verifier.TestMemberIsUndefined( 414 verifier.TestMemberIsUndefined(
410 media_stream_track.echo_return_loss_enhancement); 415 media_stream_track.echo_return_loss_enhancement);
411 } else { 416 } else {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 caller_ = nullptr; 553 caller_ = nullptr;
549 // Any pending stats requests should have completed in the act of destroying 554 // Any pending stats requests should have completed in the act of destroying
550 // the peer connection. 555 // the peer connection.
551 EXPECT_TRUE(stats_obtainer->report()); 556 EXPECT_TRUE(stats_obtainer->report());
552 } 557 }
553 #endif // HAVE_SCTP 558 #endif // HAVE_SCTP
554 559
555 } // namespace 560 } // namespace
556 561
557 } // namespace webrtc 562 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | webrtc/api/rtcstatscollector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698