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

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

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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"
10 #include "base/logging.h" 9 #include "base/logging.h"
11 10
12 namespace syncer { 11 namespace syncer {
13 namespace syncable { 12 namespace syncable {
14 13
15 // We can't tokenize expected_min/expected_max since it can be a 14 // We can't tokenize expected_min/expected_max since it can be a
16 // general expression. 15 // general expression.
17 #define ASSERT_ENUM_BOUNDS(enum_min, enum_max, expected_min, expected_max) \ 16 #define ASSERT_ENUM_BOUNDS(enum_min, enum_max, expected_min, expected_max) \
18 static_assert(static_cast<int>(enum_min) == \ 17 static_assert(static_cast<int>(enum_min) == \
19 static_cast<int>(expected_min), \ 18 static_cast<int>(expected_min), \
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 } 184 }
186 NOTREACHED(); 185 NOTREACHED();
187 return ""; 186 return "";
188 } 187 }
189 188
190 #undef ENUM_CASE 189 #undef ENUM_CASE
191 #undef ASSERT_ENUM_BOUNDS 190 #undef ASSERT_ENUM_BOUNDS
192 191
193 } // namespace syncable 192 } // namespace syncable
194 } // namespace syncer 193 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/syncable/syncable_delete_journal.cc ('k') | sync/syncable/syncable_model_neutral_write_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698