OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 <stdio.h> | 11 #include <stdio.h> |
12 | 12 |
13 #include <map> | 13 #include <map> |
14 #include <sstream> | 14 #include <sstream> |
15 | 15 |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "webrtc/base/scoped_ptr.h" | 17 #include "webrtc/base/scoped_ptr.h" |
18 #include "webrtc/base/scoped_ref_ptr.h" | 18 #include "webrtc/base/scoped_ref_ptr.h" |
19 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 19 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
20 #include "webrtc/modules/utility/interface/process_thread.h" | 20 #include "webrtc/modules/utility/include/process_thread.h" |
21 #include "webrtc/modules/video_capture/include/video_capture.h" | 21 #include "webrtc/modules/video_capture/include/video_capture.h" |
22 #include "webrtc/modules/video_capture/include/video_capture_factory.h" | 22 #include "webrtc/modules/video_capture/include/video_capture_factory.h" |
23 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 23 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
24 #include "webrtc/system_wrappers/include/sleep.h" | 24 #include "webrtc/system_wrappers/include/sleep.h" |
25 #include "webrtc/system_wrappers/include/tick_util.h" | 25 #include "webrtc/system_wrappers/include/tick_util.h" |
26 #include "webrtc/test/testsupport/gtest_disable.h" | 26 #include "webrtc/test/testsupport/gtest_disable.h" |
27 #include "webrtc/video_frame.h" | 27 #include "webrtc/video_frame.h" |
28 | 28 |
29 using rtc::scoped_ptr; | 29 using rtc::scoped_ptr; |
30 using webrtc::CriticalSectionWrapper; | 30 using webrtc::CriticalSectionWrapper; |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 length, capture_callback_.capability(), 0)); | 531 length, capture_callback_.capability(), 0)); |
532 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_180)); | 532 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_180)); |
533 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_180); | 533 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_180); |
534 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), | 534 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), |
535 length, capture_callback_.capability(), 0)); | 535 length, capture_callback_.capability(), 0)); |
536 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_270)); | 536 EXPECT_EQ(0, capture_module_->SetCaptureRotation(webrtc::kVideoRotation_270)); |
537 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_270); | 537 capture_callback_.SetExpectedCaptureRotation(webrtc::kVideoRotation_270); |
538 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), | 538 EXPECT_EQ(0, capture_input_interface_->IncomingFrame(test_buffer.get(), |
539 length, capture_callback_.capability(), 0)); | 539 length, capture_callback_.capability(), 0)); |
540 } | 540 } |
OLD | NEW |