Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1311)

Side by Side Diff: webrtc/video/video_send_stream_tests.cc

Issue 2470913004: Moved transport_adapter.h/.cc from call/ to video/ dir to remove circular dependency (Closed)
Patch Set: Fixed footer guards Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/video/video_receive_stream.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 14 #include "webrtc/base/bind.h"
15 #include "webrtc/base/checks.h" 15 #include "webrtc/base/checks.h"
16 #include "webrtc/base/criticalsection.h" 16 #include "webrtc/base/criticalsection.h"
17 #include "webrtc/base/event.h" 17 #include "webrtc/base/event.h"
18 #include "webrtc/base/logging.h" 18 #include "webrtc/base/logging.h"
19 #include "webrtc/base/platform_thread.h" 19 #include "webrtc/base/platform_thread.h"
20 #include "webrtc/base/rate_limiter.h" 20 #include "webrtc/base/rate_limiter.h"
21 #include "webrtc/call.h" 21 #include "webrtc/call.h"
22 #include "webrtc/call/transport_adapter.h"
23 #include "webrtc/common_video/include/frame_callback.h" 22 #include "webrtc/common_video/include/frame_callback.h"
24 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h" 23 #include "webrtc/modules/rtp_rtcp/include/rtp_header_parser.h"
25 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h" 24 #include "webrtc/modules/rtp_rtcp/include/rtp_rtcp.h"
26 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h" 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_sender.h"
27 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h" 26 #include "webrtc/modules/rtp_rtcp/source/rtp_format_vp9.h"
28 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h" 27 #include "webrtc/modules/video_coding/codecs/vp9/include/vp9.h"
29 #include "webrtc/system_wrappers/include/sleep.h" 28 #include "webrtc/system_wrappers/include/sleep.h"
30 #include "webrtc/test/call_test.h" 29 #include "webrtc/test/call_test.h"
31 #include "webrtc/test/configurable_frame_size_encoder.h" 30 #include "webrtc/test/configurable_frame_size_encoder.h"
32 #include "webrtc/test/fake_texture_frame.h" 31 #include "webrtc/test/fake_texture_frame.h"
33 #include "webrtc/test/frame_generator.h" 32 #include "webrtc/test/frame_generator.h"
34 #include "webrtc/test/frame_utils.h" 33 #include "webrtc/test/frame_utils.h"
35 #include "webrtc/test/gtest.h" 34 #include "webrtc/test/gtest.h"
36 #include "webrtc/test/null_transport.h" 35 #include "webrtc/test/null_transport.h"
37 #include "webrtc/test/rtcp_packet_parser.h" 36 #include "webrtc/test/rtcp_packet_parser.h"
38 #include "webrtc/test/testsupport/perf_test.h" 37 #include "webrtc/test/testsupport/perf_test.h"
39 38
40 #include "webrtc/video/send_statistics_proxy.h" 39 #include "webrtc/video/send_statistics_proxy.h"
40 #include "webrtc/video/transport_adapter.h"
41 #include "webrtc/video_frame.h" 41 #include "webrtc/video_frame.h"
42 #include "webrtc/video_send_stream.h" 42 #include "webrtc/video_send_stream.h"
43 43
44 namespace webrtc { 44 namespace webrtc {
45 45
46 enum VideoFormat { kGeneric, kVP8, }; 46 enum VideoFormat { kGeneric, kVP8, };
47 47
48 void ExpectEqualFramesVector(const std::vector<VideoFrame>& frames1, 48 void ExpectEqualFramesVector(const std::vector<VideoFrame>& frames1,
49 const std::vector<VideoFrame>& frames2); 49 const std::vector<VideoFrame>& frames2);
50 VideoFrame CreateVideoFrame(int width, int height, uint8_t data); 50 VideoFrame CreateVideoFrame(int width, int height, uint8_t data);
(...skipping 2894 matching lines...) Expand 10 before | Expand all | Expand 10 after
2945 RequestSourceRotateIfVideoOrientationExtensionNotSupported) { 2945 RequestSourceRotateIfVideoOrientationExtensionNotSupported) {
2946 TestRequestSourceRotateVideo(false); 2946 TestRequestSourceRotateVideo(false);
2947 } 2947 }
2948 2948
2949 TEST_F(VideoSendStreamTest, 2949 TEST_F(VideoSendStreamTest,
2950 DoNotRequestsRotationIfVideoOrientationExtensionSupported) { 2950 DoNotRequestsRotationIfVideoOrientationExtensionSupported) {
2951 TestRequestSourceRotateVideo(true); 2951 TestRequestSourceRotateVideo(true);
2952 } 2952 }
2953 2953
2954 } // namespace webrtc 2954 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/video/video_receive_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698