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

Side by Side Diff: remoting/host/host_mock_objects.h

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months 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
« no previous file with comments | « remoting/host/event_executor_mac.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 5 #ifndef REMOTING_HOST_HOST_MOCK_OBJECTS_H_
6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 6 #define REMOTING_HOST_HOST_MOCK_OBJECTS_H_
7 7
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "remoting/host/chromoting_host_context.h" 9 #include "remoting/host/chromoting_host_context.h"
10 #include "remoting/host/client_session.h" 10 #include "remoting/host/client_session.h"
(...skipping 17 matching lines...) Expand all
28 MockDesktopEnvironment(); 28 MockDesktopEnvironment();
29 virtual ~MockDesktopEnvironment(); 29 virtual ~MockDesktopEnvironment();
30 30
31 MOCK_METHOD1(CreateAudioCapturerPtr, 31 MOCK_METHOD1(CreateAudioCapturerPtr,
32 AudioCapturer*(scoped_refptr<base::SingleThreadTaskRunner>)); 32 AudioCapturer*(scoped_refptr<base::SingleThreadTaskRunner>));
33 MOCK_METHOD2(CreateEventExecutorPtr, 33 MOCK_METHOD2(CreateEventExecutorPtr,
34 EventExecutor*(scoped_refptr<base::SingleThreadTaskRunner>, 34 EventExecutor*(scoped_refptr<base::SingleThreadTaskRunner>,
35 scoped_refptr<base::SingleThreadTaskRunner>)); 35 scoped_refptr<base::SingleThreadTaskRunner>));
36 MOCK_METHOD2( 36 MOCK_METHOD2(
37 CreateVideoCapturerPtr, 37 CreateVideoCapturerPtr,
38 VideoFrameCapturer*(scoped_refptr<base::SingleThreadTaskRunner>, 38 media::ScreenCapturer*(scoped_refptr<base::SingleThreadTaskRunner>,
39 scoped_refptr<base::SingleThreadTaskRunner>)); 39 scoped_refptr<base::SingleThreadTaskRunner>));
40 40
41 // DesktopEnvironment implementation. 41 // DesktopEnvironment implementation.
42 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer( 42 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer(
43 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) OVERRIDE; 43 scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner) OVERRIDE;
44 virtual scoped_ptr<EventExecutor> CreateEventExecutor( 44 virtual scoped_ptr<EventExecutor> CreateEventExecutor(
45 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 45 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
46 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE; 46 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE;
47 virtual scoped_ptr<VideoFrameCapturer> CreateVideoCapturer( 47 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer(
48 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner, 48 scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
49 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) OVERRIDE; 49 scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) OVERRIDE;
50 }; 50 };
51 51
52 class MockDisconnectWindow : public DisconnectWindow { 52 class MockDisconnectWindow : public DisconnectWindow {
53 public: 53 public:
54 MockDisconnectWindow(); 54 MockDisconnectWindow();
55 virtual ~MockDisconnectWindow(); 55 virtual ~MockDisconnectWindow();
56 56
57 MOCK_METHOD2(Show, bool(const base::Closure& disconnect_callback, 57 MOCK_METHOD2(Show, bool(const base::Closure& disconnect_callback,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void(const std::string& jid, 148 void(const std::string& jid,
149 const std::string& channel_name, 149 const std::string& channel_name,
150 const protocol::TransportRoute& route)); 150 const protocol::TransportRoute& route));
151 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login)); 151 MOCK_METHOD1(OnStart, void(const std::string& xmpp_login));
152 MOCK_METHOD0(OnShutdown, void()); 152 MOCK_METHOD0(OnShutdown, void());
153 }; 153 };
154 154
155 } // namespace remoting 155 } // namespace remoting
156 156
157 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_ 157 #endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
OLDNEW
« no previous file with comments | « remoting/host/event_executor_mac.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698