Removed 'anonymous' from namespace, added whitespace in thread_restrictions.cc
[chromium-blink-merge.git] / remoting / host / host_mock_objects.cc
blob7b4d28b639e87752dfd15a900cda3bc4687a99e3
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
3 // found in the LICENSE file.
5 #include "remoting/host/host_mock_objects.h"
7 #include "base/single_thread_task_runner.h"
8 #include "net/base/ip_endpoint.h"
9 #include "remoting/base/auto_thread_task_runner.h"
10 #include "remoting/codec/audio_encoder.h"
11 #include "remoting/codec/video_encoder.h"
12 #include "remoting/host/audio_capturer.h"
13 #include "remoting/host/input_injector.h"
14 #include "remoting/proto/event.pb.h"
15 #include "remoting/proto/video.pb.h"
16 #include "remoting/protocol/transport.h"
17 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h"
18 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
20 namespace remoting {
22 MockDesktopEnvironment::MockDesktopEnvironment() {}
24 MockDesktopEnvironment::~MockDesktopEnvironment() {}
26 scoped_ptr<AudioCapturer> MockDesktopEnvironment::CreateAudioCapturer() {
27 return make_scoped_ptr(CreateAudioCapturerPtr());
30 scoped_ptr<InputInjector> MockDesktopEnvironment::CreateInputInjector() {
31 return make_scoped_ptr(CreateInputInjectorPtr());
34 scoped_ptr<ScreenControls> MockDesktopEnvironment::CreateScreenControls() {
35 return make_scoped_ptr(CreateScreenControlsPtr());
38 scoped_ptr<webrtc::DesktopCapturer>
39 MockDesktopEnvironment::CreateVideoCapturer() {
40 return make_scoped_ptr(CreateVideoCapturerPtr());
43 scoped_ptr<GnubbyAuthHandler>
44 MockDesktopEnvironment::CreateGnubbyAuthHandler(
45 protocol::ClientStub* client_stub) {
46 return make_scoped_ptr(CreateGnubbyAuthHandlerPtr(client_stub));
49 scoped_ptr<webrtc::MouseCursorMonitor>
50 MockDesktopEnvironment::CreateMouseCursorMonitor() {
51 return make_scoped_ptr(CreateMouseCursorMonitorPtr());
54 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() {}
56 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {}
58 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create(
59 base::WeakPtr<ClientSessionControl> client_session_control) {
60 return make_scoped_ptr(CreatePtr());
63 MockInputInjector::MockInputInjector() {}
65 MockInputInjector::~MockInputInjector() {}
67 void MockInputInjector::Start(
68 scoped_ptr<protocol::ClipboardStub> client_clipboard) {
69 StartPtr(client_clipboard.get());
72 MockClientSessionControl::MockClientSessionControl() {}
74 MockClientSessionControl::~MockClientSessionControl() {}
76 MockClientSessionEventHandler::MockClientSessionEventHandler() {}
78 MockClientSessionEventHandler::~MockClientSessionEventHandler() {}
80 MockHostStatusObserver::MockHostStatusObserver() {}
82 MockHostStatusObserver::~MockHostStatusObserver() {}
84 MockGnubbyAuthHandler::MockGnubbyAuthHandler() {}
86 MockGnubbyAuthHandler::~MockGnubbyAuthHandler() {}
88 MockMouseCursorMonitor::MockMouseCursorMonitor() {}
90 MockMouseCursorMonitor::~MockMouseCursorMonitor() {}
92 MockVideoEncoder::MockVideoEncoder() {
95 MockVideoEncoder::~MockVideoEncoder() {
98 scoped_ptr<VideoPacket> MockVideoEncoder::Encode(
99 const webrtc::DesktopFrame& frame) {
100 return make_scoped_ptr(EncodePtr(frame));
103 } // namespace remoting