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 #include "chrome/browser/sync/internal_api/includes/syncer_error.h" | 5 #include "sync/util/syncer_error.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace browser_sync { | 9 namespace browser_sync { |
10 | 10 |
11 #define ENUM_CASE(x) case x: return #x; break; | 11 #define ENUM_CASE(x) case x: return #x; break; |
12 const char* GetSyncerErrorString(SyncerError value) { | 12 const char* GetSyncerErrorString(SyncerError value) { |
13 switch (value) { | 13 switch (value) { |
14 ENUM_CASE(UNSET); | 14 ENUM_CASE(UNSET); |
15 ENUM_CASE(DIRECTORY_LOOKUP_FAILED); | 15 ENUM_CASE(DIRECTORY_LOOKUP_FAILED); |
(...skipping 11 matching lines...) Expand all Loading... |
27 ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED); | 27 ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED); |
28 ENUM_CASE(SYNCER_OK); | 28 ENUM_CASE(SYNCER_OK); |
29 } | 29 } |
30 NOTREACHED(); | 30 NOTREACHED(); |
31 return "INVALID"; | 31 return "INVALID"; |
32 } | 32 } |
33 #undef ENUM_CASE | 33 #undef ENUM_CASE |
34 | 34 |
35 } // namespace browser_sync | 35 } // namespace browser_sync |
36 | 36 |
OLD | NEW |