OLD | NEW |
1 // Copyright (c) 2011 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 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 "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" |
11 | 11 |
12 namespace syncable { | 12 namespace syncable { |
13 | 13 |
14 // 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 |
15 // general expression. | 15 // general expression. |
16 #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) \ |
17 COMPILE_ASSERT(static_cast<int>(enum_min) == \ | 17 COMPILE_ASSERT(static_cast<int>(enum_min) == \ |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 case BIT_TEMPS_END: break; | 155 case BIT_TEMPS_END: break; |
156 } | 156 } |
157 NOTREACHED(); | 157 NOTREACHED(); |
158 return ""; | 158 return ""; |
159 } | 159 } |
160 | 160 |
161 #undef ENUM_CASE | 161 #undef ENUM_CASE |
162 #undef ASSERT_ENUM_BOUNDS | 162 #undef ASSERT_ENUM_BOUNDS |
163 | 163 |
164 } // namespace syncable | 164 } // namespace syncable |
OLD | NEW |