Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: sync/syncable/syncable_enum_conversions.cc

Issue 211523002: Add AttachmentMetadata to Sync's EntryKernel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Forgot about using META_PROTO_TIMES_VALS in the test. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // Keep this file in sync with entry_kernel.h. 5 // Keep this file in sync with entry_kernel.h.
6 6
7 #include "sync/syncable/syncable_enum_conversions.h" 7 #include "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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 UNIQUE_POSITION_FIELDS_END - 1); 153 UNIQUE_POSITION_FIELDS_END - 1);
154 switch(position_field) { 154 switch(position_field) {
155 ENUM_CASE(SERVER_UNIQUE_POSITION); 155 ENUM_CASE(SERVER_UNIQUE_POSITION);
156 ENUM_CASE(UNIQUE_POSITION); 156 ENUM_CASE(UNIQUE_POSITION);
157 case UNIQUE_POSITION_FIELDS_END: break; 157 case UNIQUE_POSITION_FIELDS_END: break;
158 } 158 }
159 NOTREACHED(); 159 NOTREACHED();
160 return ""; 160 return "";
161 } 161 }
162 162
163 const char* GetAttachmentMetadataFieldString(
164 AttachmentMetadataField attachment_metadata_field) {
165 ASSERT_ENUM_BOUNDS(ATTACHMENT_METADATA,
166 ATTACHMENT_METADATA,
167 ATTACHMENT_METADATA_FIELDS_BEGIN,
168 ATTACHMENT_METADATA_FIELDS_END - 1);
169 switch(attachment_metadata_field) {
170 ENUM_CASE(ATTACHMENT_METADATA);
171 case ATTACHMENT_METADATA_FIELDS_END: break;
172 }
173 NOTREACHED();
174 return "";
175 }
176
163 const char* GetBitTempString(BitTemp bit_temp) { 177 const char* GetBitTempString(BitTemp bit_temp) {
164 ASSERT_ENUM_BOUNDS(SYNCING, SYNCING, 178 ASSERT_ENUM_BOUNDS(SYNCING, SYNCING,
165 BIT_TEMPS_BEGIN, BIT_TEMPS_END - 1); 179 BIT_TEMPS_BEGIN, BIT_TEMPS_END - 1);
166 switch (bit_temp) { 180 switch (bit_temp) {
167 ENUM_CASE(SYNCING); 181 ENUM_CASE(SYNCING);
168 case BIT_TEMPS_END: break; 182 case BIT_TEMPS_END: break;
169 } 183 }
170 NOTREACHED(); 184 NOTREACHED();
171 return ""; 185 return "";
172 } 186 }
173 187
174 #undef ENUM_CASE 188 #undef ENUM_CASE
175 #undef ASSERT_ENUM_BOUNDS 189 #undef ASSERT_ENUM_BOUNDS
176 190
177 } // namespace syncable 191 } // namespace syncable
178 } // namespace syncer 192 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/syncable_enum_conversions.h ('k') | sync/syncable/syncable_enum_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698