OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 "webrtc/video/video_capture_input.h" | 10 #include "webrtc/video/video_capture_input.h" |
11 | 11 |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "webrtc/base/scoped_ptr.h" | 16 #include "webrtc/base/scoped_ptr.h" |
17 #include "webrtc/common.h" | 17 #include "webrtc/common.h" |
18 #include "webrtc/modules/utility/interface/mock/mock_process_thread.h" | 18 #include "webrtc/modules/utility/include/mock/mock_process_thread.h" |
19 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" | 19 #include "webrtc/system_wrappers/include/critical_section_wrapper.h" |
20 #include "webrtc/system_wrappers/include/event_wrapper.h" | 20 #include "webrtc/system_wrappers/include/event_wrapper.h" |
21 #include "webrtc/system_wrappers/include/ref_count.h" | 21 #include "webrtc/system_wrappers/include/ref_count.h" |
22 #include "webrtc/system_wrappers/include/scoped_vector.h" | 22 #include "webrtc/system_wrappers/include/scoped_vector.h" |
23 #include "webrtc/test/fake_texture_frame.h" | 23 #include "webrtc/test/fake_texture_frame.h" |
24 #include "webrtc/video/send_statistics_proxy.h" | 24 #include "webrtc/video/send_statistics_proxy.h" |
25 | 25 |
26 using ::testing::_; | 26 using ::testing::_; |
27 using ::testing::Invoke; | 27 using ::testing::Invoke; |
28 using ::testing::NiceMock; | 28 using ::testing::NiceMock; |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 const int kSizeY = width * height * 2; | 296 const int kSizeY = width * height * 2; |
297 uint8_t buffer[kSizeY]; | 297 uint8_t buffer[kSizeY]; |
298 memset(buffer, data, kSizeY); | 298 memset(buffer, data, kSizeY); |
299 frame->CreateFrame(buffer, buffer, buffer, width, height, width, width / 2, | 299 frame->CreateFrame(buffer, buffer, buffer, width, height, width, width / 2, |
300 width / 2); | 300 width / 2); |
301 frame->set_render_time_ms(data); | 301 frame->set_render_time_ms(data); |
302 return frame; | 302 return frame; |
303 } | 303 } |
304 | 304 |
305 } // namespace webrtc | 305 } // namespace webrtc |
OLD | NEW |