OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/test/test_chromoting_client.h" | 5 #include "remoting/test/test_chromoting_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 protocol::FetchSecretCallback fetch_secret_callback; | 144 protocol::FetchSecretCallback fetch_secret_callback; |
145 if (!connection_setup_info.pin.empty()) { | 145 if (!connection_setup_info.pin.empty()) { |
146 fetch_secret_callback = base::Bind(&FetchSecret, connection_setup_info.pin); | 146 fetch_secret_callback = base::Bind(&FetchSecret, connection_setup_info.pin); |
147 } | 147 } |
148 | 148 |
149 scoped_ptr<protocol::Authenticator> authenticator( | 149 scoped_ptr<protocol::Authenticator> authenticator( |
150 new protocol::NegotiatingClientAuthenticator( | 150 new protocol::NegotiatingClientAuthenticator( |
151 connection_setup_info.pairing_id, connection_setup_info.shared_secret, | 151 connection_setup_info.pairing_id, connection_setup_info.shared_secret, |
152 connection_setup_info.host_id, fetch_secret_callback, | 152 connection_setup_info.host_id, fetch_secret_callback, |
153 std::move(token_fetcher), connection_setup_info.auth_methods)); | 153 std::move(token_fetcher))); |
154 | 154 |
155 chromoting_client_->Start( | 155 chromoting_client_->Start( |
156 signal_strategy_.get(), std::move(authenticator), transport_context, | 156 signal_strategy_.get(), std::move(authenticator), transport_context, |
157 connection_setup_info.host_jid, connection_setup_info.capabilities); | 157 connection_setup_info.host_jid, connection_setup_info.capabilities); |
158 } | 158 } |
159 | 159 |
160 void TestChromotingClient::EndConnection() { | 160 void TestChromotingClient::EndConnection() { |
161 // Clearing out the client will close the connection. | 161 // Clearing out the client will close the connection. |
162 chromoting_client_.reset(); | 162 chromoting_client_.reset(); |
163 | 163 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 VLOG(1) << "TestChromotingClient::InjectClipboardEvent() Called"; | 277 VLOG(1) << "TestChromotingClient::InjectClipboardEvent() Called"; |
278 } | 278 } |
279 | 279 |
280 void TestChromotingClient::SetCursorShape( | 280 void TestChromotingClient::SetCursorShape( |
281 const protocol::CursorShapeInfo& cursor_shape) { | 281 const protocol::CursorShapeInfo& cursor_shape) { |
282 VLOG(1) << "TestChromotingClient::SetCursorShape() Called"; | 282 VLOG(1) << "TestChromotingClient::SetCursorShape() Called"; |
283 } | 283 } |
284 | 284 |
285 } // namespace test | 285 } // namespace test |
286 } // namespace remoting | 286 } // namespace remoting |
OLD | NEW |