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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 TestEnumStringFunction( | 43 TestEnumStringFunction( |
44 GetPageTransitionRedirectTypeString, | 44 GetPageTransitionRedirectTypeString, |
45 sync_pb::SyncEnums::PageTransitionRedirectType_MIN, | 45 sync_pb::SyncEnums::PageTransitionRedirectType_MIN, |
46 sync_pb::SyncEnums::PageTransitionRedirectType_MAX); | 46 sync_pb::SyncEnums::PageTransitionRedirectType_MAX); |
47 } | 47 } |
48 | 48 |
49 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) { | 49 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) { |
50 TestEnumStringFunction( | 50 TestEnumStringFunction( |
51 GetUpdatesSourceString, | 51 GetUpdatesSourceString, |
52 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN, | 52 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN, |
53 sync_pb::GetUpdatesCallerInfo::SYNC_CYCLE_CONTINUATION); | 53 sync_pb::GetUpdatesCallerInfo::PERIODIC); |
54 TestEnumStringFunction( | 54 TestEnumStringFunction( |
55 GetUpdatesSourceString, | 55 GetUpdatesSourceString, |
56 sync_pb::GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE, | 56 sync_pb::GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE, |
57 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); | 57 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); |
58 } | 58 } |
59 | 59 |
60 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) { | 60 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) { |
61 TestEnumStringFunction( | 61 TestEnumStringFunction( |
62 GetResponseTypeString, | 62 GetResponseTypeString, |
63 sync_pb::CommitResponse::ResponseType_MIN, | 63 sync_pb::CommitResponse::ResponseType_MIN, |
(...skipping 15 matching lines...) Expand all Loading... |
79 | 79 |
80 TEST_F(ProtoEnumConversionsTest, GetActionString) { | 80 TEST_F(ProtoEnumConversionsTest, GetActionString) { |
81 TestEnumStringFunction( | 81 TestEnumStringFunction( |
82 GetActionString, | 82 GetActionString, |
83 sync_pb::SyncEnums::Action_MIN, | 83 sync_pb::SyncEnums::Action_MIN, |
84 sync_pb::SyncEnums::Action_MAX); | 84 sync_pb::SyncEnums::Action_MAX); |
85 } | 85 } |
86 | 86 |
87 } // namespace | 87 } // namespace |
88 } // namespace syncer | 88 } // namespace syncer |
OLD | NEW |