summaryrefslogtreecommitdiffstats
path: root/remoting/test/connection_setup_info.h
blob: 96eedcdceec1e750ed913f650b59dfd6c1e17552 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef REMOTING_TEST_CONNECTION_SETUP_INFO_H_
#define REMOTING_TEST_CONNECTION_SETUP_INFO_H_

#include <string>
#include <vector>

#include "remoting/protocol/authentication_method.h"

namespace remoting {
namespace test {

// Holds the information needed to establish a connection with a remote host.
struct ConnectionSetupInfo {
  ConnectionSetupInfo();
  ConnectionSetupInfo(const ConnectionSetupInfo& other);
  ~ConnectionSetupInfo();

  // User provided information.
  std::string access_token;
  std::string user_name;
  std::string pin;

  // Chromoting host information.
  std::string host_name;
  std::string offline_reason;
  std::string public_key;

  // App Remoting information.
  std::string authorization_code;
  std::string shared_secret;

  // Chromoting host information.
  std::vector<protocol::AuthenticationMethod> auth_methods;
  std::string capabilities;
  std::string host_id;
  std::string host_jid;
  std::string pairing_id;
};

}  // namespace test
}  // namespace remoting

#endif  // REMOTING_TEST_CONNECTION_SETUP_INFO_H_