Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / remoting / host / host_mock_objects.cc
blobc48517f5eefe6944132a6e2e5184b5372cd21b52
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/desktop_capturer.h"
19 namespace remoting {
21 MockDesktopEnvironment::MockDesktopEnvironment() {}
23 MockDesktopEnvironment::~MockDesktopEnvironment() {}
25 scoped_ptr<AudioCapturer> MockDesktopEnvironment::CreateAudioCapturer() {
26 return make_scoped_ptr(CreateAudioCapturerPtr());
29 scoped_ptr<InputInjector> MockDesktopEnvironment::CreateInputInjector() {
30 return make_scoped_ptr(CreateInputInjectorPtr());
33 scoped_ptr<ScreenControls> MockDesktopEnvironment::CreateScreenControls() {
34 return make_scoped_ptr(CreateScreenControlsPtr());
37 scoped_ptr<webrtc::DesktopCapturer>
38 MockDesktopEnvironment::CreateVideoCapturer() {
39 return make_scoped_ptr(CreateVideoCapturerPtr());
42 scoped_ptr<GnubbyAuthHandler>
43 MockDesktopEnvironment::CreateGnubbyAuthHandler(
44 protocol::ClientStub* client_stub) {
45 return make_scoped_ptr(CreateGnubbyAuthHandlerPtr(client_stub));
48 scoped_ptr<webrtc::MouseCursorMonitor>
49 MockDesktopEnvironment::CreateMouseCursorMonitor() {
50 return make_scoped_ptr(CreateMouseCursorMonitorPtr());
53 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() {}
55 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {}
57 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create(
58 base::WeakPtr<ClientSessionControl> client_session_control) {
59 return make_scoped_ptr(CreatePtr());
62 MockInputInjector::MockInputInjector() {}
64 MockInputInjector::~MockInputInjector() {}
66 void MockInputInjector::Start(
67 scoped_ptr<protocol::ClipboardStub> client_clipboard) {
68 StartPtr(client_clipboard.get());
71 MockClientSessionControl::MockClientSessionControl() {}
73 MockClientSessionControl::~MockClientSessionControl() {}
75 MockClientSessionEventHandler::MockClientSessionEventHandler() {}
77 MockClientSessionEventHandler::~MockClientSessionEventHandler() {}
79 MockHostStatusObserver::MockHostStatusObserver() {}
81 MockHostStatusObserver::~MockHostStatusObserver() {}
83 MockGnubbyAuthHandler::MockGnubbyAuthHandler() {}
85 MockGnubbyAuthHandler::~MockGnubbyAuthHandler() {}
87 MockMouseCursorMonitor::MockMouseCursorMonitor() {}
89 MockMouseCursorMonitor::~MockMouseCursorMonitor() {}
91 } // namespace remoting