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 #ifndef REMOTING_TEST_CONNECTION_SETUP_INFO_H_ | 5 #ifndef REMOTING_TEST_CONNECTION_SETUP_INFO_H_ |
6 #define REMOTING_TEST_CONNECTION_SETUP_INFO_H_ | 6 #define REMOTING_TEST_CONNECTION_SETUP_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | |
10 | |
11 #include "remoting/protocol/authentication_method.h" | |
12 | 9 |
13 namespace remoting { | 10 namespace remoting { |
14 namespace test { | 11 namespace test { |
15 | 12 |
16 // Holds the information needed to establish a connection with a remote host. | 13 // Holds the information needed to establish a connection with a remote host. |
17 struct ConnectionSetupInfo { | 14 struct ConnectionSetupInfo { |
18 ConnectionSetupInfo(); | 15 ConnectionSetupInfo(); |
19 ConnectionSetupInfo(const ConnectionSetupInfo& other); | 16 ConnectionSetupInfo(const ConnectionSetupInfo& other); |
20 ~ConnectionSetupInfo(); | 17 ~ConnectionSetupInfo(); |
21 | 18 |
22 // User provided information. | 19 // User provided information. |
23 std::string access_token; | 20 std::string access_token; |
24 std::string user_name; | 21 std::string user_name; |
25 std::string pin; | 22 std::string pin; |
26 | 23 |
27 // Chromoting host information. | 24 // Chromoting host information. |
28 std::string host_name; | 25 std::string host_name; |
29 std::string offline_reason; | 26 std::string offline_reason; |
30 std::string public_key; | 27 std::string public_key; |
31 | 28 |
32 // App Remoting information. | 29 // App Remoting information. |
33 std::string authorization_code; | 30 std::string authorization_code; |
34 std::string shared_secret; | 31 std::string shared_secret; |
35 | 32 |
36 // Chromoting host information. | 33 // Chromoting host information. |
37 std::vector<protocol::AuthenticationMethod> auth_methods; | |
38 std::string capabilities; | 34 std::string capabilities; |
39 std::string host_id; | 35 std::string host_id; |
40 std::string host_jid; | 36 std::string host_jid; |
41 std::string pairing_id; | 37 std::string pairing_id; |
42 }; | 38 }; |
43 | 39 |
44 } // namespace test | 40 } // namespace test |
45 } // namespace remoting | 41 } // namespace remoting |
46 | 42 |
47 #endif // REMOTING_TEST_CONNECTION_SETUP_INFO_H_ | 43 #endif // REMOTING_TEST_CONNECTION_SETUP_INFO_H_ |
OLD | NEW |