OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/sync/protocol/proto_value_conversions.h" | 7 #include "chrome/browser/sync/protocol/proto_value_conversions.h" |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } | 84 } |
85 | 85 |
86 TEST_F(ProtoValueConversionsTest, AppSpecificsToValue) { | 86 TEST_F(ProtoValueConversionsTest, AppSpecificsToValue) { |
87 TestSpecificsToValue(AppSpecificsToValue); | 87 TestSpecificsToValue(AppSpecificsToValue); |
88 } | 88 } |
89 | 89 |
90 TEST_F(ProtoValueConversionsTest, AutofillSpecificsToValue) { | 90 TEST_F(ProtoValueConversionsTest, AutofillSpecificsToValue) { |
91 TestSpecificsToValue(AutofillSpecificsToValue); | 91 TestSpecificsToValue(AutofillSpecificsToValue); |
92 } | 92 } |
93 | 93 |
94 TEST_F(ProtoValueConversionsTest, AutofillCreditCardSpecificsToValue) { | |
95 TestSpecificsToValue(AutofillCreditCardSpecificsToValue); | |
96 } | |
97 | |
98 TEST_F(ProtoValueConversionsTest, AutofillProfileSpecificsToValue) { | 94 TEST_F(ProtoValueConversionsTest, AutofillProfileSpecificsToValue) { |
99 TestSpecificsToValue(AutofillProfileSpecificsToValue); | 95 TestSpecificsToValue(AutofillProfileSpecificsToValue); |
100 } | 96 } |
101 | 97 |
102 TEST_F(ProtoValueConversionsTest, BookmarkSpecificsToValue) { | 98 TEST_F(ProtoValueConversionsTest, BookmarkSpecificsToValue) { |
103 TestSpecificsToValue(BookmarkSpecificsToValue); | 99 TestSpecificsToValue(BookmarkSpecificsToValue); |
104 } | 100 } |
105 | 101 |
106 TEST_F(ProtoValueConversionsTest, ExtensionSpecificsToValue) { | 102 TEST_F(ProtoValueConversionsTest, ExtensionSpecificsToValue) { |
107 TestSpecificsToValue(ExtensionSpecificsToValue); | 103 TestSpecificsToValue(ExtensionSpecificsToValue); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 154 |
159 #undef SET_EXTENSION | 155 #undef SET_EXTENSION |
160 | 156 |
161 scoped_ptr<DictionaryValue> value(EntitySpecificsToValue(specifics)); | 157 scoped_ptr<DictionaryValue> value(EntitySpecificsToValue(specifics)); |
162 EXPECT_EQ(syncable::MODEL_TYPE_COUNT - syncable::FIRST_REAL_MODEL_TYPE, | 158 EXPECT_EQ(syncable::MODEL_TYPE_COUNT - syncable::FIRST_REAL_MODEL_TYPE, |
163 static_cast<int>(value->size())); | 159 static_cast<int>(value->size())); |
164 } | 160 } |
165 | 161 |
166 } // namespace | 162 } // namespace |
167 } // namespace browser_sync | 163 } // namespace browser_sync |
OLD | NEW |