| 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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 MockEventExecutor::MockEventExecutor() {} | 29 MockEventExecutor::MockEventExecutor() {} |
| 30 | 30 |
| 31 MockEventExecutor::~MockEventExecutor() {} | 31 MockEventExecutor::~MockEventExecutor() {} |
| 32 | 32 |
| 33 void MockEventExecutor::OnSessionStarted( | 33 void MockEventExecutor::Start( |
| 34 scoped_ptr<protocol::ClipboardStub> client_clipboard) { | 34 scoped_ptr<protocol::ClipboardStub> client_clipboard) { |
| 35 OnSessionStartedPtr(client_clipboard.get()); | 35 StartPtr(client_clipboard.get()); |
| 36 } |
| 37 |
| 38 void MockEventExecutor::StopAndDelete() { |
| 39 StopAndDeleteMock(); |
| 40 delete this; |
| 36 } | 41 } |
| 37 | 42 |
| 38 MockDisconnectWindow::MockDisconnectWindow() {} | 43 MockDisconnectWindow::MockDisconnectWindow() {} |
| 39 | 44 |
| 40 MockDisconnectWindow::~MockDisconnectWindow() {} | 45 MockDisconnectWindow::~MockDisconnectWindow() {} |
| 41 | 46 |
| 42 scoped_ptr<DisconnectWindow> DisconnectWindow::Create() { | 47 scoped_ptr<DisconnectWindow> DisconnectWindow::Create() { |
| 43 return scoped_ptr<DisconnectWindow>(new MockDisconnectWindow()); | 48 return scoped_ptr<DisconnectWindow>(new MockDisconnectWindow()); |
| 44 } | 49 } |
| 45 | 50 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 72 | 77 |
| 73 MockHostStatusObserver::MockHostStatusObserver() {} | 78 MockHostStatusObserver::MockHostStatusObserver() {} |
| 74 | 79 |
| 75 MockHostStatusObserver::~MockHostStatusObserver() {} | 80 MockHostStatusObserver::~MockHostStatusObserver() {} |
| 76 | 81 |
| 77 MockUserAuthenticator::MockUserAuthenticator() {} | 82 MockUserAuthenticator::MockUserAuthenticator() {} |
| 78 | 83 |
| 79 MockUserAuthenticator::~MockUserAuthenticator() {} | 84 MockUserAuthenticator::~MockUserAuthenticator() {} |
| 80 | 85 |
| 81 } // namespace remoting | 86 } // namespace remoting |
| OLD | NEW |