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

Side by Side Diff: remoting/capturer/video_frame_capturer_unittest.cc

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « remoting/capturer/video_frame_capturer_mac_unittest.cc ('k') | remoting/capturer/video_frame_capturer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698