| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "sync/syncable/entry.h" | 5 #include "sync/syncable/entry.h" |
| 6 | 6 |
| 7 #include <iomanip> | 7 #include <iomanip> |
| 8 | 8 |
| 9 #include "net/base/escape.h" | 9 #include "net/base/escape.h" |
| 10 #include "sync/syncable/base_transaction.h" | 10 #include "sync/syncable/base_transaction.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 std::ostream& operator<<(std::ostream& os, const Entry& entry) { | 104 std::ostream& operator<<(std::ostream& os, const Entry& entry) { |
| 105 int i; | 105 int i; |
| 106 EntryKernel* const kernel = entry.kernel_; | 106 EntryKernel* const kernel = entry.kernel_; |
| 107 for (i = BEGIN_FIELDS; i < INT64_FIELDS_END; ++i) { | 107 for (i = BEGIN_FIELDS; i < INT64_FIELDS_END; ++i) { |
| 108 os << g_metas_columns[i].name << ": " | 108 os << g_metas_columns[i].name << ": " |
| 109 << kernel->ref(static_cast<Int64Field>(i)) << ", "; | 109 << kernel->ref(static_cast<Int64Field>(i)) << ", "; |
| 110 } | 110 } |
| 111 for ( ; i < TIME_FIELDS_END; ++i) { | 111 for ( ; i < TIME_FIELDS_END; ++i) { |
| 112 os << g_metas_columns[i].name << ": " | 112 os << g_metas_columns[i].name << ": " |
| 113 << csync::GetTimeDebugString( | 113 << syncer::GetTimeDebugString( |
| 114 kernel->ref(static_cast<TimeField>(i))) << ", "; | 114 kernel->ref(static_cast<TimeField>(i))) << ", "; |
| 115 } | 115 } |
| 116 for ( ; i < ID_FIELDS_END; ++i) { | 116 for ( ; i < ID_FIELDS_END; ++i) { |
| 117 os << g_metas_columns[i].name << ": " | 117 os << g_metas_columns[i].name << ": " |
| 118 << kernel->ref(static_cast<IdField>(i)) << ", "; | 118 << kernel->ref(static_cast<IdField>(i)) << ", "; |
| 119 } | 119 } |
| 120 os << "Flags: "; | 120 os << "Flags: "; |
| 121 for ( ; i < BIT_FIELDS_END; ++i) { | 121 for ( ; i < BIT_FIELDS_END; ++i) { |
| 122 if (kernel->ref(static_cast<BitField>(i))) | 122 if (kernel->ref(static_cast<BitField>(i))) |
| 123 os << g_metas_columns[i].name << ", "; | 123 os << g_metas_columns[i].name << ", "; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 134 } | 134 } |
| 135 os << "TempFlags: "; | 135 os << "TempFlags: "; |
| 136 for ( ; i < BIT_TEMPS_END; ++i) { | 136 for ( ; i < BIT_TEMPS_END; ++i) { |
| 137 if (kernel->ref(static_cast<BitTemp>(i))) | 137 if (kernel->ref(static_cast<BitTemp>(i))) |
| 138 os << "#" << i - BIT_TEMPS_BEGIN << ", "; | 138 os << "#" << i - BIT_TEMPS_BEGIN << ", "; |
| 139 } | 139 } |
| 140 return os; | 140 return os; |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace syncable | 143 } // namespace syncable |
| OLD | NEW |