| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Keep this file in sync with syncable.h. | 5 // Keep this file in sync with syncable.h. |
| 6 | 6 |
| 7 #include "chrome/browser/sync/syncable/syncable_enum_conversions.h" | 7 #include "chrome/browser/sync/syncable/syncable_enum_conversions.h" |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 ENUM_CASE(SERVER_NON_UNIQUE_NAME); | 128 ENUM_CASE(SERVER_NON_UNIQUE_NAME); |
| 129 ENUM_CASE(UNIQUE_SERVER_TAG); | 129 ENUM_CASE(UNIQUE_SERVER_TAG); |
| 130 ENUM_CASE(UNIQUE_CLIENT_TAG); | 130 ENUM_CASE(UNIQUE_CLIENT_TAG); |
| 131 case STRING_FIELDS_END: break; | 131 case STRING_FIELDS_END: break; |
| 132 } | 132 } |
| 133 NOTREACHED(); | 133 NOTREACHED(); |
| 134 return ""; | 134 return ""; |
| 135 } | 135 } |
| 136 | 136 |
| 137 const char* GetProtoFieldString(ProtoField proto_field) { | 137 const char* GetProtoFieldString(ProtoField proto_field) { |
| 138 ASSERT_ENUM_BOUNDS(SPECIFICS, SERVER_SPECIFICS, | 138 ASSERT_ENUM_BOUNDS(SPECIFICS, BASE_SERVER_SPECIFICS, |
| 139 PROTO_FIELDS_BEGIN, PROTO_FIELDS_END - 1); | 139 PROTO_FIELDS_BEGIN, PROTO_FIELDS_END - 1); |
| 140 switch (proto_field) { | 140 switch (proto_field) { |
| 141 ENUM_CASE(SPECIFICS); | 141 ENUM_CASE(SPECIFICS); |
| 142 ENUM_CASE(SERVER_SPECIFICS); | 142 ENUM_CASE(SERVER_SPECIFICS); |
| 143 ENUM_CASE(BASE_SERVER_SPECIFICS); |
| 143 case PROTO_FIELDS_END: break; | 144 case PROTO_FIELDS_END: break; |
| 144 } | 145 } |
| 145 NOTREACHED(); | 146 NOTREACHED(); |
| 146 return ""; | 147 return ""; |
| 147 } | 148 } |
| 148 | 149 |
| 149 const char* GetBitTempString(BitTemp bit_temp) { | 150 const char* GetBitTempString(BitTemp bit_temp) { |
| 150 ASSERT_ENUM_BOUNDS(SYNCING, SYNCING, | 151 ASSERT_ENUM_BOUNDS(SYNCING, SYNCING, |
| 151 BIT_TEMPS_BEGIN, BIT_TEMPS_END - 1); | 152 BIT_TEMPS_BEGIN, BIT_TEMPS_END - 1); |
| 152 switch (bit_temp) { | 153 switch (bit_temp) { |
| 153 ENUM_CASE(SYNCING); | 154 ENUM_CASE(SYNCING); |
| 154 case BIT_TEMPS_END: break; | 155 case BIT_TEMPS_END: break; |
| 155 } | 156 } |
| 156 NOTREACHED(); | 157 NOTREACHED(); |
| 157 return ""; | 158 return ""; |
| 158 } | 159 } |
| 159 | 160 |
| 160 #undef ENUM_CASE | 161 #undef ENUM_CASE |
| 161 #undef ASSERT_ENUM_BOUNDS | 162 #undef ASSERT_ENUM_BOUNDS |
| 162 | 163 |
| 163 } // namespace syncable | 164 } // namespace syncable |
| OLD | NEW |