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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 sync_pb::SyncEnums::PageTransition_MAX); | 46 sync_pb::SyncEnums::PageTransition_MAX); |
47 } | 47 } |
48 | 48 |
49 TEST_F(ProtoEnumConversionsTest, GetPageTransitionQualifierString) { | 49 TEST_F(ProtoEnumConversionsTest, GetPageTransitionQualifierString) { |
50 TestEnumStringFunction( | 50 TestEnumStringFunction( |
51 GetPageTransitionRedirectTypeString, | 51 GetPageTransitionRedirectTypeString, |
52 sync_pb::SyncEnums::PageTransitionRedirectType_MIN, | 52 sync_pb::SyncEnums::PageTransitionRedirectType_MIN, |
53 sync_pb::SyncEnums::PageTransitionRedirectType_MAX); | 53 sync_pb::SyncEnums::PageTransitionRedirectType_MAX); |
54 } | 54 } |
55 | 55 |
| 56 TEST_F(ProtoEnumConversionsTest, GetWifiCredentialSecurityClassString) { |
| 57 TestEnumStringFunction( |
| 58 GetWifiCredentialSecurityClassString, |
| 59 sync_pb::WifiCredentialSpecifics::SecurityClass_MIN, |
| 60 sync_pb::WifiCredentialSpecifics::SecurityClass_MAX); |
| 61 } |
| 62 |
56 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) { | 63 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) { |
57 TestEnumStringFunction( | 64 TestEnumStringFunction( |
58 GetUpdatesSourceString, | 65 GetUpdatesSourceString, |
59 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN, | 66 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN, |
60 sync_pb::GetUpdatesCallerInfo::PERIODIC); | 67 sync_pb::GetUpdatesCallerInfo::PERIODIC); |
61 TestEnumStringFunction( | 68 TestEnumStringFunction( |
62 GetUpdatesSourceString, | 69 GetUpdatesSourceString, |
63 sync_pb::GetUpdatesCallerInfo::RETRY, | 70 sync_pb::GetUpdatesCallerInfo::RETRY, |
64 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); | 71 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); |
65 } | 72 } |
(...skipping 20 matching lines...) Expand all Loading... |
86 | 93 |
87 TEST_F(ProtoEnumConversionsTest, GetActionString) { | 94 TEST_F(ProtoEnumConversionsTest, GetActionString) { |
88 TestEnumStringFunction( | 95 TestEnumStringFunction( |
89 GetActionString, | 96 GetActionString, |
90 sync_pb::SyncEnums::Action_MIN, | 97 sync_pb::SyncEnums::Action_MIN, |
91 sync_pb::SyncEnums::Action_MAX); | 98 sync_pb::SyncEnums::Action_MAX); |
92 } | 99 } |
93 | 100 |
94 } // namespace | 101 } // namespace |
95 } // namespace syncer | 102 } // namespace syncer |
OLD | NEW |