Revert 264226 "Reduce dependency of TiclInvalidationService on P..."
[chromium-blink-merge.git] / remoting / host / host_mock_objects.cc
blobdcc2646e9f7f488d246aa5b74eeba7feab0f8fba
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/message_loop/message_loop_proxy.h"
8 #include "base/single_thread_task_runner.h"
9 #include "net/base/ip_endpoint.h"
10 #include "remoting/base/auto_thread_task_runner.h"
11 #include "remoting/codec/audio_encoder.h"
12 #include "remoting/codec/video_encoder.h"
13 #include "remoting/host/audio_capturer.h"
14 #include "remoting/host/input_injector.h"
15 #include "remoting/proto/event.pb.h"
16 #include "remoting/protocol/transport.h"
17 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
19 namespace remoting {
21 MockDesktopEnvironment::MockDesktopEnvironment() {}
23 MockDesktopEnvironment::~MockDesktopEnvironment() {}
25 scoped_ptr<AudioCapturer> MockDesktopEnvironment::CreateAudioCapturer() {
26 return scoped_ptr<AudioCapturer>(CreateAudioCapturerPtr());
29 scoped_ptr<InputInjector> MockDesktopEnvironment::CreateInputInjector() {
30 return scoped_ptr<InputInjector>(CreateInputInjectorPtr());
33 scoped_ptr<ScreenControls> MockDesktopEnvironment::CreateScreenControls() {
34 return scoped_ptr<ScreenControls>(CreateScreenControlsPtr());
37 scoped_ptr<webrtc::ScreenCapturer>
38 MockDesktopEnvironment::CreateVideoCapturer() {
39 return scoped_ptr<webrtc::ScreenCapturer>(CreateVideoCapturerPtr());
42 scoped_ptr<GnubbyAuthHandler>
43 MockDesktopEnvironment::CreateGnubbyAuthHandler(
44 protocol::ClientStub* client_stub) {
45 return scoped_ptr<GnubbyAuthHandler>(CreateGnubbyAuthHandlerPtr(client_stub));
48 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() {}
50 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {}
52 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create(
53 base::WeakPtr<ClientSessionControl> client_session_control) {
54 return scoped_ptr<DesktopEnvironment>(CreatePtr());
57 MockInputInjector::MockInputInjector() {}
59 MockInputInjector::~MockInputInjector() {}
61 void MockInputInjector::Start(
62 scoped_ptr<protocol::ClipboardStub> client_clipboard) {
63 StartPtr(client_clipboard.get());
66 MockClientSessionControl::MockClientSessionControl() {}
68 MockClientSessionControl::~MockClientSessionControl() {}
70 MockClientSessionEventHandler::MockClientSessionEventHandler() {}
72 MockClientSessionEventHandler::~MockClientSessionEventHandler() {}
74 MockHostStatusObserver::MockHostStatusObserver() {}
76 MockHostStatusObserver::~MockHostStatusObserver() {}
78 MockGnubbyAuthHandler::MockGnubbyAuthHandler() {}
80 MockGnubbyAuthHandler::~MockGnubbyAuthHandler() {}
82 } // namespace remoting