| OLD | NEW |
| 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/host_mock_objects.h" | 5 #include "remoting/host/host_mock_objects.h" |
| 6 | 6 |
| 7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
| 8 #include "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
| 9 #include "remoting/base/auto_thread_task_runner.h" | 9 #include "remoting/base/auto_thread_task_runner.h" |
| 10 #include "remoting/base/capture_data.h" | 10 #include "remoting/base/capture_data.h" |
| 11 #include "remoting/proto/event.pb.h" | 11 #include "remoting/proto/event.pb.h" |
| 12 #include "remoting/protocol/transport.h" | 12 #include "remoting/protocol/transport.h" |
| 13 | 13 |
| 14 namespace remoting { | 14 namespace remoting { |
| 15 | 15 |
| 16 MockVideoFrameCapturer::MockVideoFrameCapturer() {} | 16 MockVideoFrameCapturer::MockVideoFrameCapturer() {} |
| 17 | 17 |
| 18 MockVideoFrameCapturer::~MockVideoFrameCapturer() {} | 18 MockVideoFrameCapturer::~MockVideoFrameCapturer() {} |
| 19 | 19 |
| 20 MockCaptureCompletedCallback::MockCaptureCompletedCallback() {} | 20 MockCaptureCompletedCallback::MockCaptureCompletedCallback() {} |
| 21 | 21 |
| 22 MockCaptureCompletedCallback::~MockCaptureCompletedCallback() {} | 22 MockCaptureCompletedCallback::~MockCaptureCompletedCallback() {} |
| 23 | 23 |
| 24 void MockCaptureCompletedCallback::CaptureCompleted( | 24 void MockCaptureCompletedCallback::CaptureCompleted( |
| 25 scoped_refptr<CaptureData> capture_data) { | 25 scoped_refptr<CaptureData> capture_data) { |
| 26 CaptureCompletedPtr(capture_data.get()); | 26 CaptureCompletedPtr(capture_data.get()); |
| 27 } | 27 } |
| 28 | 28 |
| 29 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() |
| 30 : DesktopEnvironmentFactory(NULL, NULL) { |
| 31 } |
| 32 |
| 33 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {} |
| 34 |
| 35 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create( |
| 36 ClientSession* client) { |
| 37 return scoped_ptr<DesktopEnvironment>(CreatePtr(client)); |
| 38 } |
| 39 |
| 29 MockEventExecutor::MockEventExecutor() {} | 40 MockEventExecutor::MockEventExecutor() {} |
| 30 | 41 |
| 31 MockEventExecutor::~MockEventExecutor() {} | 42 MockEventExecutor::~MockEventExecutor() {} |
| 32 | 43 |
| 33 void MockEventExecutor::Start( | 44 void MockEventExecutor::Start( |
| 34 scoped_ptr<protocol::ClipboardStub> client_clipboard) { | 45 scoped_ptr<protocol::ClipboardStub> client_clipboard) { |
| 35 StartPtr(client_clipboard.get()); | 46 StartPtr(client_clipboard.get()); |
| 36 } | 47 } |
| 37 | 48 |
| 38 void MockEventExecutor::StopAndDelete() { | 49 void MockEventExecutor::StopAndDelete() { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 88 |
| 78 MockHostStatusObserver::MockHostStatusObserver() {} | 89 MockHostStatusObserver::MockHostStatusObserver() {} |
| 79 | 90 |
| 80 MockHostStatusObserver::~MockHostStatusObserver() {} | 91 MockHostStatusObserver::~MockHostStatusObserver() {} |
| 81 | 92 |
| 82 MockUserAuthenticator::MockUserAuthenticator() {} | 93 MockUserAuthenticator::MockUserAuthenticator() {} |
| 83 | 94 |
| 84 MockUserAuthenticator::~MockUserAuthenticator() {} | 95 MockUserAuthenticator::~MockUserAuthenticator() {} |
| 85 | 96 |
| 86 } // namespace remoting | 97 } // namespace remoting |
| OLD | NEW |