Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: remoting/test/test_chromoting_client.cc

Issue 1768383004: Cleanup AuthenticatorMethod usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/test/remote_host_info.cc ('k') | remoting/test/test_chromoting_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/test/remote_host_info.cc ('k') | remoting/test/test_chromoting_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698