OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/video_frame_capturer.h" | 5 #include "remoting/capturer/video_frame_capturer.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
10 #endif // defined(OS_MACOSX) | 10 #endif // defined(OS_MACOSX) |
11 #include "remoting/base/capture_data.h" | 11 #include "remoting/capturer/capture_data.h" |
12 #include "remoting/base/shared_buffer_factory.h" | 12 #include "remoting/capturer/shared_buffer_factory.h" |
13 #include "remoting/host/host_mock_objects.h" | 13 #include "remoting/capturer/video_capturer_mock_objects.h" |
14 #include "remoting/protocol/protocol_mock_objects.h" | |
15 #include "testing/gmock/include/gmock/gmock.h" | 14 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
17 | 16 |
18 using ::testing::_; | 17 using ::testing::_; |
19 using ::testing::AnyNumber; | 18 using ::testing::AnyNumber; |
20 | 19 |
21 namespace remoting { | 20 namespace remoting { |
22 | 21 |
23 class MockSharedBufferFactory : public SharedBufferFactory { | 22 class MockSharedBufferFactory : public SharedBufferFactory { |
24 public: | 23 public: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 capturer_ = VideoFrameCapturer::CreateWithFactory(&shared_buffer_factory_); | 91 capturer_ = VideoFrameCapturer::CreateWithFactory(&shared_buffer_factory_); |
93 capturer_->Start(&delegate_); | 92 capturer_->Start(&delegate_); |
94 capturer_->CaptureFrame(); | 93 capturer_->CaptureFrame(); |
95 capturer_->Stop(); | 94 capturer_->Stop(); |
96 capturer_.reset(); | 95 capturer_.reset(); |
97 } | 96 } |
98 | 97 |
99 #endif // defined(OS_WIN) | 98 #endif // defined(OS_WIN) |
100 | 99 |
101 } // namespace remoting | 100 } // namespace remoting |
OLD | NEW |