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

Side by Side Diff: sync/protocol/proto_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
« no previous file with comments | « sync/js/sync_js_controller.h ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_enum_conversions.h" 7 #include "sync/protocol/proto_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 12
14 #define ASSERT_ENUM_BOUNDS(enum_parent, enum_type, enum_min, enum_max) \ 13 #define ASSERT_ENUM_BOUNDS(enum_parent, enum_type, enum_min, enum_max) \
15 static_assert(enum_parent::enum_type##_MIN == enum_parent::enum_min, \ 14 static_assert(enum_parent::enum_type##_MIN == enum_parent::enum_min, \
16 #enum_type "_MIN should be " #enum_min); \ 15 #enum_type "_MIN should be " #enum_min); \
17 static_assert(enum_parent::enum_type##_MAX == enum_parent::enum_max, \ 16 static_assert(enum_parent::enum_type##_MAX == enum_parent::enum_max, \
18 #enum_type "_MAX should be " #enum_max); 17 #enum_type "_MAX should be " #enum_max);
19 18
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 ENUM_CASE(sync_pb::TabNavigation, STATE_BLOCKED); 325 ENUM_CASE(sync_pb::TabNavigation, STATE_BLOCKED);
327 } 326 }
328 NOTREACHED(); 327 NOTREACHED();
329 return ""; 328 return "";
330 } 329 }
331 330
332 #undef ASSERT_ENUM_BOUNDS 331 #undef ASSERT_ENUM_BOUNDS
333 #undef ENUM_CASE 332 #undef ENUM_CASE
334 333
335 } // namespace syncer 334 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/js/sync_js_controller.h ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698