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 |
11 #include <set> | 11 #include <set> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "webrtc/api/datachannelinterface.h" | 14 #include "webrtc/api/datachannelinterface.h" |
15 #include "webrtc/api/peerconnectioninterface.h" | 15 #include "webrtc/api/peerconnectioninterface.h" |
16 #include "webrtc/api/stats/rtcstats_objects.h" | 16 #include "webrtc/api/stats/rtcstats_objects.h" |
17 #include "webrtc/api/stats/rtcstatsreport.h" | 17 #include "webrtc/api/stats/rtcstatsreport.h" |
18 #include "webrtc/api/test/peerconnectiontestwrapper.h" | |
19 #include "webrtc/api/test/rtcstatsobtainer.h" | |
20 #include "webrtc/base/checks.h" | 18 #include "webrtc/base/checks.h" |
21 #include "webrtc/base/gunit.h" | 19 #include "webrtc/base/gunit.h" |
22 #include "webrtc/base/physicalsocketserver.h" | 20 #include "webrtc/base/physicalsocketserver.h" |
23 #include "webrtc/base/refcountedobject.h" | 21 #include "webrtc/base/refcountedobject.h" |
24 #include "webrtc/base/scoped_ref_ptr.h" | 22 #include "webrtc/base/scoped_ref_ptr.h" |
25 #include "webrtc/base/virtualsocketserver.h" | 23 #include "webrtc/base/virtualsocketserver.h" |
| 24 #include "webrtc/pc/test/peerconnectiontestwrapper.h" |
| 25 #include "webrtc/pc/test/rtcstatsobtainer.h" |
26 | 26 |
27 namespace webrtc { | 27 namespace webrtc { |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 const int64_t kGetStatsTimeoutMs = 10000; | 31 const int64_t kGetStatsTimeoutMs = 10000; |
32 | 32 |
33 class RTCStatsIntegrationTest : public testing::Test { | 33 class RTCStatsIntegrationTest : public testing::Test { |
34 public: | 34 public: |
35 RTCStatsIntegrationTest() | 35 RTCStatsIntegrationTest() |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 caller_ = nullptr; | 623 caller_ = nullptr; |
624 // Any pending stats requests should have completed in the act of destroying | 624 // Any pending stats requests should have completed in the act of destroying |
625 // the peer connection. | 625 // the peer connection. |
626 EXPECT_TRUE(stats_obtainer->report()); | 626 EXPECT_TRUE(stats_obtainer->report()); |
627 } | 627 } |
628 #endif // HAVE_SCTP | 628 #endif // HAVE_SCTP |
629 | 629 |
630 } // namespace | 630 } // namespace |
631 | 631 |
632 } // namespace webrtc | 632 } // namespace webrtc |
OLD | NEW |