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

Side by Side Diff: webrtc/modules/video_capture/test/video_capture_unittest.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 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
OLDNEW
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/interface/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/interface/critical_section_wrapper.h" 23 #include "webrtc/system_wrappers/include/critical_section_wrapper.h"
24 #include "webrtc/system_wrappers/interface/sleep.h" 24 #include "webrtc/system_wrappers/include/sleep.h"
25 #include "webrtc/system_wrappers/interface/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;
31 using webrtc::CriticalSectionScoped; 31 using webrtc::CriticalSectionScoped;
32 using webrtc::SleepMs; 32 using webrtc::SleepMs;
33 using webrtc::TickTime; 33 using webrtc::TickTime;
34 using webrtc::VideoCaptureAlarm; 34 using webrtc::VideoCaptureAlarm;
35 using webrtc::VideoCaptureCapability; 35 using webrtc::VideoCaptureCapability;
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_capture/mac/video_capture_mac.mm ('k') | webrtc/modules/video_capture/video_capture_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698