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 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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 sync_pb::SyncEnums::PageTransitionRedirectType_MAX); | 53 sync_pb::SyncEnums::PageTransitionRedirectType_MAX); |
54 } | 54 } |
55 | 55 |
56 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) { | 56 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) { |
57 TestEnumStringFunction( | 57 TestEnumStringFunction( |
58 GetUpdatesSourceString, | 58 GetUpdatesSourceString, |
59 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN, | 59 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN, |
60 sync_pb::GetUpdatesCallerInfo::PERIODIC); | 60 sync_pb::GetUpdatesCallerInfo::PERIODIC); |
61 TestEnumStringFunction( | 61 TestEnumStringFunction( |
62 GetUpdatesSourceString, | 62 GetUpdatesSourceString, |
63 sync_pb::GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE, | 63 sync_pb::GetUpdatesCallerInfo::RETRY, |
64 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); | 64 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); |
65 } | 65 } |
66 | 66 |
67 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) { | 67 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) { |
68 TestEnumStringFunction( | 68 TestEnumStringFunction( |
69 GetResponseTypeString, | 69 GetResponseTypeString, |
70 sync_pb::CommitResponse::ResponseType_MIN, | 70 sync_pb::CommitResponse::ResponseType_MIN, |
71 sync_pb::CommitResponse::ResponseType_MAX); | 71 sync_pb::CommitResponse::ResponseType_MAX); |
72 } | 72 } |
73 | 73 |
(...skipping 12 matching lines...) Expand all Loading... |
86 | 86 |
87 TEST_F(ProtoEnumConversionsTest, GetActionString) { | 87 TEST_F(ProtoEnumConversionsTest, GetActionString) { |
88 TestEnumStringFunction( | 88 TestEnumStringFunction( |
89 GetActionString, | 89 GetActionString, |
90 sync_pb::SyncEnums::Action_MIN, | 90 sync_pb::SyncEnums::Action_MIN, |
91 sync_pb::SyncEnums::Action_MAX); | 91 sync_pb::SyncEnums::Action_MAX); |
92 } | 92 } |
93 | 93 |
94 } // namespace | 94 } // namespace |
95 } // namespace syncer | 95 } // namespace syncer |
OLD | NEW |