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 // 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 Loading... |
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 |
OLD | NEW |