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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |