| 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" | |
| 11 #include "remoting/proto/event.pb.h" | 10 #include "remoting/proto/event.pb.h" |
| 12 #include "remoting/protocol/transport.h" | 11 #include "remoting/protocol/transport.h" |
| 13 | 12 |
| 14 namespace remoting { | 13 namespace remoting { |
| 15 | 14 |
| 16 MockVideoFrameCapturer::MockVideoFrameCapturer() {} | |
| 17 | |
| 18 MockVideoFrameCapturer::~MockVideoFrameCapturer() {} | |
| 19 | |
| 20 MockVideoFrameCapturerDelegate::MockVideoFrameCapturerDelegate() { | |
| 21 } | |
| 22 | |
| 23 MockVideoFrameCapturerDelegate::~MockVideoFrameCapturerDelegate() { | |
| 24 } | |
| 25 | |
| 26 void MockVideoFrameCapturerDelegate::OnCursorShapeChanged( | |
| 27 scoped_ptr<protocol::CursorShapeInfo> cursor_shape) { | |
| 28 // Notify the mock method. | |
| 29 OnCursorShapeChangedPtr(cursor_shape.get()); | |
| 30 } | |
| 31 | |
| 32 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() | 15 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() |
| 33 : DesktopEnvironmentFactory(NULL, NULL) { | 16 : DesktopEnvironmentFactory(NULL, NULL) { |
| 34 } | 17 } |
| 35 | 18 |
| 36 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {} | 19 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {} |
| 37 | 20 |
| 38 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create( | 21 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create( |
| 39 ClientSession* client) { | 22 ClientSession* client) { |
| 40 return scoped_ptr<DesktopEnvironment>(CreatePtr(client)); | 23 return scoped_ptr<DesktopEnvironment>(CreatePtr(client)); |
| 41 } | 24 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 71 | 54 |
| 72 MockClientSessionEventHandler::MockClientSessionEventHandler() {} | 55 MockClientSessionEventHandler::MockClientSessionEventHandler() {} |
| 73 | 56 |
| 74 MockClientSessionEventHandler::~MockClientSessionEventHandler() {} | 57 MockClientSessionEventHandler::~MockClientSessionEventHandler() {} |
| 75 | 58 |
| 76 MockHostStatusObserver::MockHostStatusObserver() {} | 59 MockHostStatusObserver::MockHostStatusObserver() {} |
| 77 | 60 |
| 78 MockHostStatusObserver::~MockHostStatusObserver() {} | 61 MockHostStatusObserver::~MockHostStatusObserver() {} |
| 79 | 62 |
| 80 } // namespace remoting | 63 } // namespace remoting |
| OLD | NEW |