OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "services/shell/public/cpp/capabilities.h" | |
6 | |
7 #include <tuple> | |
8 | |
9 namespace shell { | |
10 | |
11 CapabilitySpec::CapabilitySpec() {} | |
12 CapabilitySpec::CapabilitySpec(const CapabilitySpec& other) = default; | |
13 CapabilitySpec::~CapabilitySpec() {} | |
14 | |
15 bool CapabilitySpec::operator==(const CapabilitySpec& other) const { | |
16 return other.provided == provided && other.required == required; | |
17 } | |
18 | |
19 bool CapabilitySpec::operator<(const CapabilitySpec& other) const { | |
20 return std::tie(provided, required) < | |
21 std::tie(other.provided, other.required); | |
22 } | |
23 | |
24 } // namespace shell | |
OLD | NEW |