| 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/protocol/authentication_method.h" | 5 #include "remoting/protocol/authentication_method.h" |
| 6 #include "remoting/test/host_info.h" | 6 #include "remoting/test/host_info.h" |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 namespace test { | 11 namespace test { |
| 12 | 12 |
| 13 HostInfo::HostInfo() { | 13 HostInfo::HostInfo() { |
| 14 } | 14 } |
| 15 | 15 |
| 16 HostInfo::HostInfo(const HostInfo& other) = default; |
| 17 |
| 16 HostInfo::~HostInfo() { | 18 HostInfo::~HostInfo() { |
| 17 } | 19 } |
| 18 | 20 |
| 19 bool HostInfo::ParseHostInfo(const base::DictionaryValue& host_info) { | 21 bool HostInfo::ParseHostInfo(const base::DictionaryValue& host_info) { |
| 20 const base::ListValue* list_value = nullptr; | 22 const base::ListValue* list_value = nullptr; |
| 21 | 23 |
| 22 // Add TokenUrlPatterns to HostInfo. | 24 // Add TokenUrlPatterns to HostInfo. |
| 23 if (host_info.GetList("tokenUrlPatterns", &list_value)) { | 25 if (host_info.GetList("tokenUrlPatterns", &list_value)) { |
| 24 if (!list_value->empty()) { | 26 if (!list_value->empty()) { |
| 25 for (base::Value* item : *list_value) { | 27 for (base::Value* item : *list_value) { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 protocol::AuthenticationMethod::Spake2( | 99 protocol::AuthenticationMethod::Spake2( |
| 98 protocol::AuthenticationMethod::HashFunction::HMAC_SHA256)); | 100 protocol::AuthenticationMethod::HashFunction::HMAC_SHA256)); |
| 99 connection_setup_info.auth_methods.push_back( | 101 connection_setup_info.auth_methods.push_back( |
| 100 protocol::AuthenticationMethod::ThirdParty()); | 102 protocol::AuthenticationMethod::ThirdParty()); |
| 101 | 103 |
| 102 return connection_setup_info; | 104 return connection_setup_info; |
| 103 } | 105 } |
| 104 | 106 |
| 105 } // namespace test | 107 } // namespace test |
| 106 } // namespace remoting | 108 } // namespace remoting |
| OLD | NEW |