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> | 10 #include <algorithm> |
11 #include <list> | 11 #include <list> |
12 #include <map> | 12 #include <map> |
13 #include <memory> | 13 #include <memory> |
14 #include <sstream> | 14 #include <sstream> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/test/gtest.h" | |
19 | |
20 #include "webrtc/base/checks.h" | 18 #include "webrtc/base/checks.h" |
21 #include "webrtc/base/event.h" | 19 #include "webrtc/base/event.h" |
22 #include "webrtc/base/file.h" | 20 #include "webrtc/base/file.h" |
23 #include "webrtc/base/optional.h" | 21 #include "webrtc/base/optional.h" |
24 #include "webrtc/base/rate_limiter.h" | 22 #include "webrtc/base/rate_limiter.h" |
25 #include "webrtc/call.h" | 23 #include "webrtc/call.h" |
26 #include "webrtc/call/transport_adapter.h" | 24 #include "webrtc/call/transport_adapter.h" |
27 #include "webrtc/common_video/include/frame_callback.h" | 25 #include "webrtc/common_video/include/frame_callback.h" |
28 #include "webrtc/media/base/fakevideorenderer.h" | 26 #include "webrtc/media/base/fakevideorenderer.h" |
29 #include "webrtc/modules/include/module_common_types.h" | 27 #include "webrtc/modules/include/module_common_types.h" |
(...skipping 10 matching lines...) Expand all Loading... |
40 #include "webrtc/system_wrappers/include/metrics.h" | 38 #include "webrtc/system_wrappers/include/metrics.h" |
41 #include "webrtc/system_wrappers/include/metrics_default.h" | 39 #include "webrtc/system_wrappers/include/metrics_default.h" |
42 #include "webrtc/system_wrappers/include/sleep.h" | 40 #include "webrtc/system_wrappers/include/sleep.h" |
43 #include "webrtc/test/call_test.h" | 41 #include "webrtc/test/call_test.h" |
44 #include "webrtc/test/direct_transport.h" | 42 #include "webrtc/test/direct_transport.h" |
45 #include "webrtc/test/encoder_settings.h" | 43 #include "webrtc/test/encoder_settings.h" |
46 #include "webrtc/test/fake_decoder.h" | 44 #include "webrtc/test/fake_decoder.h" |
47 #include "webrtc/test/fake_encoder.h" | 45 #include "webrtc/test/fake_encoder.h" |
48 #include "webrtc/test/frame_generator.h" | 46 #include "webrtc/test/frame_generator.h" |
49 #include "webrtc/test/frame_generator_capturer.h" | 47 #include "webrtc/test/frame_generator_capturer.h" |
| 48 #include "webrtc/test/gtest.h" |
50 #include "webrtc/test/null_transport.h" | 49 #include "webrtc/test/null_transport.h" |
51 #include "webrtc/test/rtcp_packet_parser.h" | 50 #include "webrtc/test/rtcp_packet_parser.h" |
52 #include "webrtc/test/rtp_rtcp_observer.h" | 51 #include "webrtc/test/rtp_rtcp_observer.h" |
53 #include "webrtc/test/testsupport/fileutils.h" | 52 #include "webrtc/test/testsupport/fileutils.h" |
54 #include "webrtc/test/testsupport/perf_test.h" | 53 #include "webrtc/test/testsupport/perf_test.h" |
55 #include "webrtc/video_encoder.h" | 54 #include "webrtc/video_encoder.h" |
56 | 55 |
57 namespace webrtc { | 56 namespace webrtc { |
58 | 57 |
59 static const int kSilenceTimeoutMs = 2000; | 58 static const int kSilenceTimeoutMs = 2000; |
(...skipping 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3854 std::unique_ptr<VideoEncoder> encoder_; | 3853 std::unique_ptr<VideoEncoder> encoder_; |
3855 std::unique_ptr<VideoDecoder> decoder_; | 3854 std::unique_ptr<VideoDecoder> decoder_; |
3856 rtc::CriticalSection crit_; | 3855 rtc::CriticalSection crit_; |
3857 int recorded_frames_ GUARDED_BY(crit_); | 3856 int recorded_frames_ GUARDED_BY(crit_); |
3858 } test(this); | 3857 } test(this); |
3859 | 3858 |
3860 RunBaseTest(&test); | 3859 RunBaseTest(&test); |
3861 } | 3860 } |
3862 | 3861 |
3863 } // namespace webrtc | 3862 } // namespace webrtc |
OLD | NEW |