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

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

Issue 2591963003: RTCIceCandidateStats.deleted = false added. (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_unittest.cc » ('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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 bool VerifyRTCIceCandidateStats( 390 bool VerifyRTCIceCandidateStats(
391 const RTCIceCandidateStats& candidate) { 391 const RTCIceCandidateStats& candidate) {
392 RTCStatsVerifier verifier(report_, &candidate); 392 RTCStatsVerifier verifier(report_, &candidate);
393 verifier.TestMemberIsDefined(candidate.is_remote); 393 verifier.TestMemberIsDefined(candidate.is_remote);
394 verifier.TestMemberIsDefined(candidate.ip); 394 verifier.TestMemberIsDefined(candidate.ip);
395 verifier.TestMemberIsNonNegative<int32_t>(candidate.port); 395 verifier.TestMemberIsNonNegative<int32_t>(candidate.port);
396 verifier.TestMemberIsDefined(candidate.protocol); 396 verifier.TestMemberIsDefined(candidate.protocol);
397 verifier.TestMemberIsDefined(candidate.candidate_type); 397 verifier.TestMemberIsDefined(candidate.candidate_type);
398 verifier.TestMemberIsNonNegative<int32_t>(candidate.priority); 398 verifier.TestMemberIsNonNegative<int32_t>(candidate.priority);
399 verifier.TestMemberIsUndefined(candidate.url); 399 verifier.TestMemberIsUndefined(candidate.url);
400 verifier.TestMemberIsDefined(candidate.deleted);
400 return verifier.ExpectAllMembersSuccessfullyTested(); 401 return verifier.ExpectAllMembersSuccessfullyTested();
401 } 402 }
402 403
403 bool VerifyRTCLocalIceCandidateStats( 404 bool VerifyRTCLocalIceCandidateStats(
404 const RTCLocalIceCandidateStats& local_candidate) { 405 const RTCLocalIceCandidateStats& local_candidate) {
405 return VerifyRTCIceCandidateStats(local_candidate); 406 return VerifyRTCIceCandidateStats(local_candidate);
406 } 407 }
407 408
408 bool VerifyRTCRemoteIceCandidateStats( 409 bool VerifyRTCRemoteIceCandidateStats(
409 const RTCRemoteIceCandidateStats& remote_candidate) { 410 const RTCRemoteIceCandidateStats& remote_candidate) {
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 caller_ = nullptr; 590 caller_ = nullptr;
590 // Any pending stats requests should have completed in the act of destroying 591 // Any pending stats requests should have completed in the act of destroying
591 // the peer connection. 592 // the peer connection.
592 EXPECT_TRUE(stats_obtainer->report()); 593 EXPECT_TRUE(stats_obtainer->report());
593 } 594 }
594 #endif // HAVE_SCTP 595 #endif // HAVE_SCTP
595 596
596 } // namespace 597 } // namespace
597 598
598 } // namespace webrtc 599 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698