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

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

Issue 1736633002: remoting: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/host_info.h ('k') | no next file » | 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/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
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
OLDNEW
« no previous file with comments | « remoting/test/host_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698