Ankush Singh | ee2362f | 2023-08-29 09:42:03 | [diff] [blame] | 1 | // Copyright 2023 The Chromium Authors |
| 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 "components/sync/service/local_data_description.h" |
| 6 | |
| 7 | namespace syncer { |
| 8 | |
| 9 | LocalDataDescription::LocalDataDescription() = default; |
| 10 | |
Ankush Singh | ee2362f | 2023-08-29 09:42:03 | [diff] [blame] | 11 | LocalDataDescription::LocalDataDescription(const LocalDataDescription&) = |
| 12 | default; |
| 13 | |
| 14 | LocalDataDescription& LocalDataDescription::operator=( |
| 15 | const LocalDataDescription&) = default; |
| 16 | |
| 17 | LocalDataDescription::LocalDataDescription(LocalDataDescription&&) = default; |
| 18 | |
| 19 | LocalDataDescription& LocalDataDescription::operator=(LocalDataDescription&&) = |
| 20 | default; |
| 21 | |
| 22 | LocalDataDescription::~LocalDataDescription() = default; |
| 23 | |
Ankush Singh | 05d8b39e | 2023-09-08 13:13:35 | [diff] [blame] | 24 | void PrintTo(const LocalDataDescription& desc, std::ostream* os) { |
Victor Hugo Vianna Silva | a408c27 | 2024-07-15 14:57:13 | [diff] [blame^] | 25 | *os << "{ item_count:" << desc.item_count << ", domains:["; |
Ankush Singh | 05d8b39e | 2023-09-08 13:13:35 | [diff] [blame] | 26 | for (const auto& domain : desc.domains) { |
| 27 | *os << domain << ","; |
| 28 | } |
| 29 | *os << "], domain_count:" << desc.domain_count; |
| 30 | } |
| 31 | |
Ankush Singh | ee2362f | 2023-08-29 09:42:03 | [diff] [blame] | 32 | } // namespace syncer |