OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/service_manager/public/cpp/capabilities.h" | 5 #include "services/service_manager/public/cpp/capabilities.h" |
6 | 6 |
7 #include <tuple> | 7 #include <tuple> |
8 | 8 |
9 namespace shell { | 9 namespace service_manager { |
10 | 10 |
11 CapabilitySpec::CapabilitySpec() {} | 11 CapabilitySpec::CapabilitySpec() {} |
12 CapabilitySpec::CapabilitySpec(const CapabilitySpec& other) = default; | 12 CapabilitySpec::CapabilitySpec(const CapabilitySpec& other) = default; |
13 CapabilitySpec::~CapabilitySpec() {} | 13 CapabilitySpec::~CapabilitySpec() {} |
14 | 14 |
15 bool CapabilitySpec::operator==(const CapabilitySpec& other) const { | 15 bool CapabilitySpec::operator==(const CapabilitySpec& other) const { |
16 return other.provided == provided && other.required == required; | 16 return other.provided == provided && other.required == required; |
17 } | 17 } |
18 | 18 |
19 bool CapabilitySpec::operator<(const CapabilitySpec& other) const { | 19 bool CapabilitySpec::operator<(const CapabilitySpec& other) const { |
20 return std::tie(provided, required) < | 20 return std::tie(provided, required) < |
21 std::tie(other.provided, other.required); | 21 std::tie(other.provided, other.required); |
22 } | 22 } |
23 | 23 |
24 } // namespace shell | 24 } // namespace service_manager |
OLD | NEW |