Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: chrome/browser/sync/protocol/proto_value_conversions_unittest.cc

Issue 7608032: [Sync] Remove AutofillCreditCard specifics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/protocol/proto_value_conversions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/proto_value_conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698