| 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 MockVideoFrameCapturerDelegate::MockVideoFrameCapturerDelegate() { |
| 21 } |
| 21 | 22 |
| 22 MockCaptureCompletedCallback::~MockCaptureCompletedCallback() {} | 23 MockVideoFrameCapturerDelegate::~MockVideoFrameCapturerDelegate() { |
| 24 } |
| 23 | 25 |
| 24 void MockCaptureCompletedCallback::CaptureCompleted( | 26 void MockVideoFrameCapturerDelegate::OnCursorShapeChanged( |
| 25 scoped_refptr<CaptureData> capture_data) { | 27 scoped_ptr<protocol::CursorShapeInfo> cursor_shape) { |
| 26 CaptureCompletedPtr(capture_data.get()); | 28 // Notify the mock method. |
| 29 OnCursorShapeChangedPtr(cursor_shape.get()); |
| 27 } | 30 } |
| 28 | 31 |
| 29 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() | 32 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() |
| 30 : DesktopEnvironmentFactory(NULL, NULL) { | 33 : DesktopEnvironmentFactory(NULL, NULL) { |
| 31 } | 34 } |
| 32 | 35 |
| 33 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {} | 36 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {} |
| 34 | 37 |
| 35 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create( | 38 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create( |
| 36 ClientSession* client) { | 39 ClientSession* client) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 86 |
| 84 MockHostStatusObserver::MockHostStatusObserver() {} | 87 MockHostStatusObserver::MockHostStatusObserver() {} |
| 85 | 88 |
| 86 MockHostStatusObserver::~MockHostStatusObserver() {} | 89 MockHostStatusObserver::~MockHostStatusObserver() {} |
| 87 | 90 |
| 88 MockUserAuthenticator::MockUserAuthenticator() {} | 91 MockUserAuthenticator::MockUserAuthenticator() {} |
| 89 | 92 |
| 90 MockUserAuthenticator::~MockUserAuthenticator() {} | 93 MockUserAuthenticator::~MockUserAuthenticator() {} |
| 91 | 94 |
| 92 } // namespace remoting | 95 } // namespace remoting |
| OLD | NEW |