| 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/capture_data.h" | 9 #include "remoting/base/capture_data.h" |
| 10 #include "remoting/proto/event.pb.h" | 10 #include "remoting/proto/event.pb.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 void MockCaptureCompletedCallback::CaptureCompleted( | 23 void MockCaptureCompletedCallback::CaptureCompleted( |
| 24 scoped_refptr<CaptureData> capture_data) { | 24 scoped_refptr<CaptureData> capture_data) { |
| 25 CaptureCompletedPtr(capture_data.get()); | 25 CaptureCompletedPtr(capture_data.get()); |
| 26 } | 26 } |
| 27 | 27 |
| 28 MockEventExecutor::MockEventExecutor() {} | 28 MockEventExecutor::MockEventExecutor() {} |
| 29 | 29 |
| 30 MockEventExecutor::~MockEventExecutor() {} | 30 MockEventExecutor::~MockEventExecutor() {} |
| 31 | 31 |
| 32 void MockEventExecutor::OnSessionStarted( | 32 void MockEventExecutor::Start( |
| 33 scoped_ptr<protocol::ClipboardStub> client_clipboard) { | 33 scoped_ptr<protocol::ClipboardStub> client_clipboard) { |
| 34 OnSessionStartedPtr(client_clipboard.get()); | 34 StartPtr(client_clipboard.get()); |
| 35 } |
| 36 |
| 37 void MockEventExecutor::StopAndDelete() { |
| 38 StopAndDeleteMock(); |
| 39 delete this; |
| 35 } | 40 } |
| 36 | 41 |
| 37 MockDisconnectWindow::MockDisconnectWindow() {} | 42 MockDisconnectWindow::MockDisconnectWindow() {} |
| 38 | 43 |
| 39 MockDisconnectWindow::~MockDisconnectWindow() {} | 44 MockDisconnectWindow::~MockDisconnectWindow() {} |
| 40 | 45 |
| 41 scoped_ptr<DisconnectWindow> DisconnectWindow::Create() { | 46 scoped_ptr<DisconnectWindow> DisconnectWindow::Create() { |
| 42 return scoped_ptr<DisconnectWindow>(new MockDisconnectWindow()); | 47 return scoped_ptr<DisconnectWindow>(new MockDisconnectWindow()); |
| 43 } | 48 } |
| 44 | 49 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 70 | 75 |
| 71 MockHostStatusObserver::MockHostStatusObserver() {} | 76 MockHostStatusObserver::MockHostStatusObserver() {} |
| 72 | 77 |
| 73 MockHostStatusObserver::~MockHostStatusObserver() {} | 78 MockHostStatusObserver::~MockHostStatusObserver() {} |
| 74 | 79 |
| 75 MockUserAuthenticator::MockUserAuthenticator() {} | 80 MockUserAuthenticator::MockUserAuthenticator() {} |
| 76 | 81 |
| 77 MockUserAuthenticator::~MockUserAuthenticator() {} | 82 MockUserAuthenticator::~MockUserAuthenticator() {} |
| 78 | 83 |
| 79 } // namespace remoting | 84 } // namespace remoting |
| OLD | NEW |