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 <vector> | 11 #include <vector> |
12 | 12 |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 | 14 |
15 #include "webrtc/base/bind.h" | 15 #include "webrtc/base/bind.h" |
16 #include "webrtc/base/checks.h" | 16 #include "webrtc/base/checks.h" |
17 #include "webrtc/base/criticalsection.h" | 17 #include "webrtc/base/criticalsection.h" |
18 #include "webrtc/base/scoped_ptr.h" | 18 #include "webrtc/base/scoped_ptr.h" |
19 #include "webrtc/call.h" | 19 #include "webrtc/call.h" |
| 20 #include "webrtc/call/transport_adapter.h" |
20 #include "webrtc/frame_callback.h" | 21 #include "webrtc/frame_callback.h" |
21 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" | 22 #include "webrtc/modules/rtp_rtcp/interface/rtp_header_parser.h" |
22 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" | 23 #include "webrtc/modules/rtp_rtcp/interface/rtp_rtcp.h" |
23 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" | 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" |
24 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" | 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_utility.h" |
25 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" | 26 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" |
26 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" | 27 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" |
27 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" | 28 #include "webrtc/system_wrappers/interface/critical_section_wrapper.h" |
28 #include "webrtc/system_wrappers/interface/event_wrapper.h" | 29 #include "webrtc/system_wrappers/interface/event_wrapper.h" |
29 #include "webrtc/system_wrappers/interface/logging.h" | 30 #include "webrtc/system_wrappers/interface/logging.h" |
30 #include "webrtc/system_wrappers/interface/ref_count.h" | 31 #include "webrtc/system_wrappers/interface/ref_count.h" |
31 #include "webrtc/system_wrappers/interface/sleep.h" | 32 #include "webrtc/system_wrappers/interface/sleep.h" |
32 #include "webrtc/system_wrappers/interface/thread_wrapper.h" | 33 #include "webrtc/system_wrappers/interface/thread_wrapper.h" |
33 #include "webrtc/test/call_test.h" | 34 #include "webrtc/test/call_test.h" |
34 #include "webrtc/test/configurable_frame_size_encoder.h" | 35 #include "webrtc/test/configurable_frame_size_encoder.h" |
35 #include "webrtc/test/fake_texture_frame.h" | 36 #include "webrtc/test/fake_texture_frame.h" |
36 #include "webrtc/test/null_transport.h" | 37 #include "webrtc/test/null_transport.h" |
37 #include "webrtc/test/testsupport/perf_test.h" | 38 #include "webrtc/test/testsupport/perf_test.h" |
38 #include "webrtc/video/send_statistics_proxy.h" | 39 #include "webrtc/video/send_statistics_proxy.h" |
39 #include "webrtc/video/transport_adapter.h" | |
40 #include "webrtc/video_frame.h" | 40 #include "webrtc/video_frame.h" |
41 #include "webrtc/video_send_stream.h" | 41 #include "webrtc/video_send_stream.h" |
42 | 42 |
43 namespace webrtc { | 43 namespace webrtc { |
44 | 44 |
45 enum VideoFormat { kGeneric, kVP8, }; | 45 enum VideoFormat { kGeneric, kVP8, }; |
46 | 46 |
47 void ExpectEqualFrames(const VideoFrame& frame1, const VideoFrame& frame2); | 47 void ExpectEqualFrames(const VideoFrame& frame1, const VideoFrame& frame2); |
48 void ExpectEqualTextureFrames(const VideoFrame& frame1, | 48 void ExpectEqualTextureFrames(const VideoFrame& frame1, |
49 const VideoFrame& frame2); | 49 const VideoFrame& frame2); |
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1898 EXPECT_TRUE(vp9videoHeader->flexible_mode); | 1898 EXPECT_TRUE(vp9videoHeader->flexible_mode); |
1899 observation_complete_->Set(); | 1899 observation_complete_->Set(); |
1900 } | 1900 } |
1901 | 1901 |
1902 } test; | 1902 } test; |
1903 | 1903 |
1904 RunBaseTest(&test); | 1904 RunBaseTest(&test); |
1905 } | 1905 } |
1906 | 1906 |
1907 } // namespace webrtc | 1907 } // namespace webrtc |
OLD | NEW |