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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 transport.local_certificate_id, RTCCertificateStats::kType); | 609 transport.local_certificate_id, RTCCertificateStats::kType); |
610 verifier.TestMemberIsIDReference( | 610 verifier.TestMemberIsIDReference( |
611 transport.remote_certificate_id, RTCCertificateStats::kType); | 611 transport.remote_certificate_id, RTCCertificateStats::kType); |
612 return verifier.ExpectAllMembersSuccessfullyTested(); | 612 return verifier.ExpectAllMembersSuccessfullyTested(); |
613 } | 613 } |
614 | 614 |
615 private: | 615 private: |
616 rtc::scoped_refptr<const RTCStatsReport> report_; | 616 rtc::scoped_refptr<const RTCStatsReport> report_; |
617 }; | 617 }; |
618 | 618 |
| 619 // Disabled on Tsan due to: |
| 620 // https://bugs.chromium.org/p/webrtc/issues/detail?id=7231 |
| 621 #if !defined(THREAD_SANITIZER) |
619 #ifdef HAVE_SCTP | 622 #ifdef HAVE_SCTP |
620 TEST_F(RTCStatsIntegrationTest, GetStatsFromCaller) { | 623 TEST_F(RTCStatsIntegrationTest, GetStatsFromCaller) { |
621 StartCall(); | 624 StartCall(); |
622 | 625 |
623 rtc::scoped_refptr<const RTCStatsReport> report = GetStatsFromCaller(); | 626 rtc::scoped_refptr<const RTCStatsReport> report = GetStatsFromCaller(); |
624 RTCStatsReportVerifier(report.get()).VerifyReport(); | 627 RTCStatsReportVerifier(report.get()).VerifyReport(); |
625 } | 628 } |
626 | 629 |
627 TEST_F(RTCStatsIntegrationTest, GetStatsFromCallee) { | 630 TEST_F(RTCStatsIntegrationTest, GetStatsFromCallee) { |
628 StartCall(); | 631 StartCall(); |
629 | 632 |
630 rtc::scoped_refptr<const RTCStatsReport> report = GetStatsFromCallee(); | 633 rtc::scoped_refptr<const RTCStatsReport> report = GetStatsFromCallee(); |
631 RTCStatsReportVerifier(report.get()).VerifyReport(); | 634 RTCStatsReportVerifier(report.get()).VerifyReport(); |
632 } | 635 } |
633 | 636 |
634 TEST_F(RTCStatsIntegrationTest, GetsStatsWhileDestroyingPeerConnections) { | 637 TEST_F(RTCStatsIntegrationTest, GetsStatsWhileDestroyingPeerConnections) { |
635 StartCall(); | 638 StartCall(); |
636 | 639 |
637 rtc::scoped_refptr<RTCStatsObtainer> stats_obtainer = | 640 rtc::scoped_refptr<RTCStatsObtainer> stats_obtainer = |
638 RTCStatsObtainer::Create(); | 641 RTCStatsObtainer::Create(); |
639 caller_->pc()->GetStats(stats_obtainer); | 642 caller_->pc()->GetStats(stats_obtainer); |
640 // This will destroy the peer connection. | 643 // This will destroy the peer connection. |
641 caller_ = nullptr; | 644 caller_ = nullptr; |
642 // Any pending stats requests should have completed in the act of destroying | 645 // Any pending stats requests should have completed in the act of destroying |
643 // the peer connection. | 646 // the peer connection. |
644 EXPECT_TRUE(stats_obtainer->report()); | 647 EXPECT_TRUE(stats_obtainer->report()); |
645 } | 648 } |
646 #endif // HAVE_SCTP | 649 #endif // HAVE_SCTP |
| 650 #endif // !defined(THREAD_SANITIZER) |
647 | 651 |
648 } // namespace | 652 } // namespace |
649 | 653 |
650 } // namespace webrtc | 654 } // namespace webrtc |
OLD | NEW |