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 "webrtc/pc/rtcstatscollector.h" | 11 #include "webrtc/pc/rtcstatscollector.h" |
12 | 12 |
13 #include <initializer_list> | 13 #include <initializer_list> |
14 #include <memory> | 14 #include <memory> |
15 #include <ostream> | 15 #include <ostream> |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "webrtc/api/jsepsessiondescription.h" | 19 #include "webrtc/api/jsepsessiondescription.h" |
20 #include "webrtc/api/rtpparameters.h" | 20 #include "webrtc/api/rtpparameters.h" |
21 #include "webrtc/api/stats/rtcstats_objects.h" | 21 #include "webrtc/api/stats/rtcstats_objects.h" |
22 #include "webrtc/api/stats/rtcstatsreport.h" | 22 #include "webrtc/api/stats/rtcstatsreport.h" |
23 #include "webrtc/api/test/mock_rtpreceiver.h" | 23 #include "webrtc/api/test/mock_rtpreceiver.h" |
24 #include "webrtc/api/test/mock_rtpsender.h" | 24 #include "webrtc/api/test/mock_rtpsender.h" |
25 #include "webrtc/base/checks.h" | |
26 #include "webrtc/base/fakeclock.h" | |
27 #include "webrtc/base/fakesslidentity.h" | |
28 #include "webrtc/base/gunit.h" | |
29 #include "webrtc/base/logging.h" | |
30 #include "webrtc/base/socketaddress.h" | |
31 #include "webrtc/base/thread_checker.h" | |
32 #include "webrtc/base/timedelta.h" | |
33 #include "webrtc/base/timeutils.h" | |
34 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" | 25 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" |
35 #include "webrtc/media/base/fakemediaengine.h" | 26 #include "webrtc/media/base/fakemediaengine.h" |
36 #include "webrtc/media/base/test/mock_mediachannel.h" | 27 #include "webrtc/media/base/test/mock_mediachannel.h" |
37 #include "webrtc/p2p/base/p2pconstants.h" | 28 #include "webrtc/p2p/base/p2pconstants.h" |
38 #include "webrtc/p2p/base/port.h" | 29 #include "webrtc/p2p/base/port.h" |
39 #include "webrtc/pc/mediastream.h" | 30 #include "webrtc/pc/mediastream.h" |
40 #include "webrtc/pc/mediastreamtrack.h" | 31 #include "webrtc/pc/mediastreamtrack.h" |
41 #include "webrtc/pc/test/mock_datachannel.h" | 32 #include "webrtc/pc/test/mock_datachannel.h" |
42 #include "webrtc/pc/test/mock_peerconnection.h" | 33 #include "webrtc/pc/test/mock_peerconnection.h" |
43 #include "webrtc/pc/test/mock_webrtcsession.h" | 34 #include "webrtc/pc/test/mock_webrtcsession.h" |
44 #include "webrtc/pc/test/rtcstatsobtainer.h" | 35 #include "webrtc/pc/test/rtcstatsobtainer.h" |
| 36 #include "webrtc/rtc_base/checks.h" |
| 37 #include "webrtc/rtc_base/fakeclock.h" |
| 38 #include "webrtc/rtc_base/fakesslidentity.h" |
| 39 #include "webrtc/rtc_base/gunit.h" |
| 40 #include "webrtc/rtc_base/logging.h" |
| 41 #include "webrtc/rtc_base/socketaddress.h" |
| 42 #include "webrtc/rtc_base/thread_checker.h" |
| 43 #include "webrtc/rtc_base/timedelta.h" |
| 44 #include "webrtc/rtc_base/timeutils.h" |
45 | 45 |
46 using testing::_; | 46 using testing::_; |
47 using testing::Invoke; | 47 using testing::Invoke; |
48 using testing::Return; | 48 using testing::Return; |
49 using testing::ReturnNull; | 49 using testing::ReturnNull; |
50 using testing::ReturnRef; | 50 using testing::ReturnRef; |
51 using testing::SetArgPointee; | 51 using testing::SetArgPointee; |
52 | 52 |
53 namespace webrtc { | 53 namespace webrtc { |
54 | 54 |
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2313 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; | 2313 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; |
2314 }; | 2314 }; |
2315 | 2315 |
2316 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { | 2316 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { |
2317 collector_->VerifyThreadUsageAndResultsMerging(); | 2317 collector_->VerifyThreadUsageAndResultsMerging(); |
2318 } | 2318 } |
2319 | 2319 |
2320 } // namespace | 2320 } // namespace |
2321 | 2321 |
2322 } // namespace webrtc | 2322 } // namespace webrtc |
OLD | NEW |