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_remote_security_key_ipc_client.h" | 5 #include "remoting/host/security_key/fake_remote_security_key_ipc_client.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
14 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
15 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
16 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
17 #include "remoting/host/chromoting_messages.h" | 17 #include "remoting/host/chromoting_messages.h" |
18 | 18 |
19 namespace remoting { | 19 namespace remoting { |
20 | 20 |
21 FakeRemoteSecurityKeyIpcClient::FakeRemoteSecurityKeyIpcClient( | 21 FakeRemoteSecurityKeyIpcClient::FakeRemoteSecurityKeyIpcClient( |
22 const base::Closure& channel_event_callback) | 22 const base::Closure& channel_event_callback) |
23 : channel_event_callback_(channel_event_callback), weak_factory_(this) { | 23 : channel_event_callback_(channel_event_callback), weak_factory_(this) { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 channel_event_callback_.Run(); | 119 channel_event_callback_.Run(); |
120 } | 120 } |
121 | 121 |
122 void FakeRemoteSecurityKeyIpcClient::OnSecurityKeyResponse( | 122 void FakeRemoteSecurityKeyIpcClient::OnSecurityKeyResponse( |
123 const std::string& request_data) { | 123 const std::string& request_data) { |
124 last_message_received_ = request_data; | 124 last_message_received_ = request_data; |
125 channel_event_callback_.Run(); | 125 channel_event_callback_.Run(); |
126 } | 126 } |
127 | 127 |
128 } // namespace remoting | 128 } // namespace remoting |
OLD | NEW |