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

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

Issue 1755273003: Simplify AuthenticationMethod type and PIN hash handling. (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
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/protocol/authentication_method.h" 5 #include "remoting/protocol/authentication_method.h"
6 #include "remoting/test/remote_host_info.h" 6 #include "remoting/test/remote_host_info.h"
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace { 10 namespace {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 connection_setup_info.access_token = access_token; 46 connection_setup_info.access_token = access_token;
47 connection_setup_info.authorization_code = authorization_code; 47 connection_setup_info.authorization_code = authorization_code;
48 connection_setup_info.capabilities = kAppRemotingCapabilities; 48 connection_setup_info.capabilities = kAppRemotingCapabilities;
49 connection_setup_info.host_id = host_id; 49 connection_setup_info.host_id = host_id;
50 connection_setup_info.host_jid = host_jid; 50 connection_setup_info.host_jid = host_jid;
51 connection_setup_info.public_key = kFakeHostPublicKey; 51 connection_setup_info.public_key = kFakeHostPublicKey;
52 connection_setup_info.shared_secret = shared_secret; 52 connection_setup_info.shared_secret = shared_secret;
53 connection_setup_info.user_name = user_name; 53 connection_setup_info.user_name = user_name;
54 54
55 connection_setup_info.auth_methods.push_back( 55 connection_setup_info.auth_methods.push_back(
56 protocol::AuthenticationMethod::ThirdParty()); 56 protocol::AuthenticationMethod::THIRD_PARTY);
57 57
58 return connection_setup_info; 58 return connection_setup_info;
59 } 59 }
60 60
61 } // namespace test 61 } // namespace test
62 } // namespace remoting 62 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698