OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
imcheng
2017/05/26 23:49:00
.cc instead of .cpp? Though see mfoltz@'s comment
btolsch
2017/05/30 09:54:30
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/media/router/discovery/discovery_network_info.h" | |
6 | |
7 DiscoveryNetworkInfo::DiscoveryNetworkInfo() {} | |
8 | |
9 DiscoveryNetworkInfo::DiscoveryNetworkInfo(std::string name, | |
10 std::string network_id) | |
11 : name(name), network_id(network_id) {} | |
12 | |
13 DiscoveryNetworkInfo::DiscoveryNetworkInfo(const DiscoveryNetworkInfo&) = | |
14 default; | |
15 | |
16 DiscoveryNetworkInfo& DiscoveryNetworkInfo::operator=( | |
17 const DiscoveryNetworkInfo&) = default; | |
18 | |
19 bool DiscoveryNetworkInfo::operator==(const DiscoveryNetworkInfo& o) const { | |
imcheng
2017/05/26 23:49:00
nit: Please use a more descriptive name for the pa
btolsch
2017/05/30 09:54:30
Done.
| |
20 return name == o.name && network_id == o.network_id; | |
21 } | |
22 | |
23 bool DiscoveryNetworkInfo::operator!=(const DiscoveryNetworkInfo& o) const { | |
24 return !(*this == o); | |
25 } | |
OLD | NEW |