OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/security_key/fake_ipc_gnubby_auth_handler.h" | 5 #include "remoting/host/security_key/fake_ipc_gnubby_auth_handler.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
10 #include "ipc/ipc_channel.h" | 10 #include "ipc/ipc_channel.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 void FakeIpcGnubbyAuthHandler::SendClientResponse( | 34 void FakeIpcGnubbyAuthHandler::SendClientResponse( |
35 int connection_id, | 35 int connection_id, |
36 const std::string& response_data) {} | 36 const std::string& response_data) {} |
37 | 37 |
38 void FakeIpcGnubbyAuthHandler::SendErrorAndCloseConnection(int connection_id) {} | 38 void FakeIpcGnubbyAuthHandler::SendErrorAndCloseConnection(int connection_id) {} |
39 | 39 |
40 void FakeIpcGnubbyAuthHandler::SetSendMessageCallback( | 40 void FakeIpcGnubbyAuthHandler::SetSendMessageCallback( |
41 const SendMessageCallback& callback) {} | 41 const SendMessageCallback& callback) {} |
42 | 42 |
| 43 void FakeIpcGnubbyAuthHandler::SetSessionIdCallback( |
| 44 const SessionIdCallback& callback) {} |
| 45 |
43 size_t FakeIpcGnubbyAuthHandler::GetActiveConnectionCountForTest() const { | 46 size_t FakeIpcGnubbyAuthHandler::GetActiveConnectionCountForTest() const { |
44 return 0; | 47 return 0; |
45 } | 48 } |
46 | 49 |
47 void FakeIpcGnubbyAuthHandler::SetRequestTimeoutForTest( | 50 void FakeIpcGnubbyAuthHandler::SetRequestTimeoutForTest( |
48 base::TimeDelta timeout) {} | 51 base::TimeDelta timeout) {} |
49 | 52 |
50 bool FakeIpcGnubbyAuthHandler::OnMessageReceived(const IPC::Message& message) { | 53 bool FakeIpcGnubbyAuthHandler::OnMessageReceived(const IPC::Message& message) { |
51 // This class does handle any IPC messages sent by the client. | 54 // This class does handle any IPC messages sent by the client. |
52 return false; | 55 return false; |
53 } | 56 } |
54 | 57 |
55 void FakeIpcGnubbyAuthHandler::OnChannelConnected(int32_t peer_pid) { | 58 void FakeIpcGnubbyAuthHandler::OnChannelConnected(int32_t peer_pid) { |
56 ASSERT_TRUE(ipc_server_channel_->Send( | 59 ASSERT_TRUE(ipc_server_channel_->Send( |
57 new ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails( | 60 new ChromotingNetworkToRemoteSecurityKeyMsg_ConnectionDetails( |
58 ipc_security_key_channel_name_))); | 61 ipc_security_key_channel_name_))); |
59 } | 62 } |
60 | 63 |
61 void FakeIpcGnubbyAuthHandler::OnChannelError() {} | 64 void FakeIpcGnubbyAuthHandler::OnChannelError() {} |
62 | 65 |
63 } // namespace remoting | 66 } // namespace remoting |
OLD | NEW |