OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 #include <algorithm> // max | 10 #include <algorithm> // max |
11 #include <memory> | 11 #include <memory> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "webrtc/base/bind.h" | |
15 #include "webrtc/base/checks.h" | |
16 #include "webrtc/base/criticalsection.h" | |
17 #include "webrtc/base/event.h" | |
18 #include "webrtc/base/logging.h" | |
19 #include "webrtc/base/platform_thread.h" | |
20 #include "webrtc/base/rate_limiter.h" | |
21 #include "webrtc/base/timeutils.h" | |
22 #include "webrtc/call/call.h" | 14 #include "webrtc/call/call.h" |
23 #include "webrtc/common_video/include/frame_callback.h" | 15 #include "webrtc/common_video/include/frame_callback.h" |
24 #include "webrtc/common_video/include/video_frame.h" | 16 #include "webrtc/common_video/include/video_frame.h" |
25 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" | 17 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" |
26 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" | 18 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" |
27 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 19 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" |
28 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" | 20 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" |
29 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" | 21 #include "webrtc/modules/video_coding/codecs/vp8/include/vp8.h" |
30 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 22 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
| 23 #include "webrtc/rtc_base/bind.h" |
| 24 #include "webrtc/rtc_base/checks.h" |
| 25 #include "webrtc/rtc_base/criticalsection.h" |
| 26 #include "webrtc/rtc_base/event.h" |
| 27 #include "webrtc/rtc_base/logging.h" |
| 28 #include "webrtc/rtc_base/platform_thread.h" |
| 29 #include "webrtc/rtc_base/rate_limiter.h" |
| 30 #include "webrtc/rtc_base/timeutils.h" |
31 #include "webrtc/system_wrappers/include/sleep.h" | 31 #include "webrtc/system_wrappers/include/sleep.h" |
32 #include "webrtc/test/call_test.h" | 32 #include "webrtc/test/call_test.h" |
33 #include "webrtc/test/configurable_frame_size_encoder.h" | 33 #include "webrtc/test/configurable_frame_size_encoder.h" |
34 #include "webrtc/test/fake_texture_frame.h" | 34 #include "webrtc/test/fake_texture_frame.h" |
| 35 #include "webrtc/test/field_trial.h" |
35 #include "webrtc/test/frame_generator.h" | 36 #include "webrtc/test/frame_generator.h" |
36 #include "webrtc/test/frame_utils.h" | 37 #include "webrtc/test/frame_utils.h" |
37 #include "webrtc/test/gtest.h" | 38 #include "webrtc/test/gtest.h" |
38 #include "webrtc/test/null_transport.h" | 39 #include "webrtc/test/null_transport.h" |
39 #include "webrtc/test/rtcp_packet_parser.h" | 40 #include "webrtc/test/rtcp_packet_parser.h" |
40 #include "webrtc/test/testsupport/perf_test.h" | 41 #include "webrtc/test/testsupport/perf_test.h" |
41 #include "webrtc/test/field_trial.h" | |
42 | 42 |
43 #include "webrtc/video/send_statistics_proxy.h" | 43 #include "webrtc/video/send_statistics_proxy.h" |
44 #include "webrtc/video/transport_adapter.h" | 44 #include "webrtc/video/transport_adapter.h" |
45 #include "webrtc/video_send_stream.h" | 45 #include "webrtc/video_send_stream.h" |
46 | 46 |
47 namespace webrtc { | 47 namespace webrtc { |
48 | 48 |
49 enum VideoFormat { kGeneric, kVP8, }; | 49 enum VideoFormat { kGeneric, kVP8, }; |
50 | 50 |
51 void ExpectEqualFramesVector(const std::vector<VideoFrame>& frames1, | 51 void ExpectEqualFramesVector(const std::vector<VideoFrame>& frames1, |
(...skipping 3349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3401 rtc::CriticalSection crit_; | 3401 rtc::CriticalSection crit_; |
3402 uint32_t max_bitrate_bps_ GUARDED_BY(&crit_); | 3402 uint32_t max_bitrate_bps_ GUARDED_BY(&crit_); |
3403 bool first_packet_sent_ GUARDED_BY(&crit_); | 3403 bool first_packet_sent_ GUARDED_BY(&crit_); |
3404 rtc::Event bitrate_changed_event_; | 3404 rtc::Event bitrate_changed_event_; |
3405 } test; | 3405 } test; |
3406 | 3406 |
3407 RunBaseTest(&test); | 3407 RunBaseTest(&test); |
3408 } | 3408 } |
3409 | 3409 |
3410 } // namespace webrtc | 3410 } // namespace webrtc |
OLD | NEW |