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

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

Issue 12089103: [Sync] Add favicon datatype proto support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 7 years, 10 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 | « sync/protocol/proto_value_conversions.cc ('k') | sync/protocol/sync.proto » ('j') | 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) 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_value_conversions.h" 7 #include "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/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 TEST_F(ProtoValueConversionsTest, ExtensionSettingSpecificsToValue) { 154 TEST_F(ProtoValueConversionsTest, ExtensionSettingSpecificsToValue) {
155 TestSpecificsToValue(ExtensionSettingSpecificsToValue); 155 TestSpecificsToValue(ExtensionSettingSpecificsToValue);
156 } 156 }
157 157
158 TEST_F(ProtoValueConversionsTest, ExtensionSpecificsToValue) { 158 TEST_F(ProtoValueConversionsTest, ExtensionSpecificsToValue) {
159 TestSpecificsToValue(ExtensionSpecificsToValue); 159 TestSpecificsToValue(ExtensionSpecificsToValue);
160 } 160 }
161 161
162 TEST_F(ProtoValueConversionsTest, FaviconImageSpecificsToValue) {
163 TestSpecificsToValue(FaviconImageSpecificsToValue);
164 }
165
166 TEST_F(ProtoValueConversionsTest, FaviconTrackingSpecificsToValue) {
167 TestSpecificsToValue(FaviconTrackingSpecificsToValue);
168 }
169
162 TEST_F(ProtoValueConversionsTest, HistoryDeleteDirectiveSpecificsToValue) { 170 TEST_F(ProtoValueConversionsTest, HistoryDeleteDirectiveSpecificsToValue) {
163 TestSpecificsToValue(HistoryDeleteDirectiveSpecificsToValue); 171 TestSpecificsToValue(HistoryDeleteDirectiveSpecificsToValue);
164 } 172 }
165 173
166 TEST_F(ProtoValueConversionsTest, NigoriSpecificsToValue) { 174 TEST_F(ProtoValueConversionsTest, NigoriSpecificsToValue) {
167 TestSpecificsToValue(NigoriSpecificsToValue); 175 TestSpecificsToValue(NigoriSpecificsToValue);
168 } 176 }
169 177
170 TEST_F(ProtoValueConversionsTest, PasswordSpecificsToValue) { 178 TEST_F(ProtoValueConversionsTest, PasswordSpecificsToValue) {
171 TestSpecificsToValue(PasswordSpecificsToValue); 179 TestSpecificsToValue(PasswordSpecificsToValue);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 301
294 scoped_ptr<DictionaryValue> value_without_specifics( 302 scoped_ptr<DictionaryValue> value_without_specifics(
295 ClientToServerResponseToValue(message, false /* include_specifics */)); 303 ClientToServerResponseToValue(message, false /* include_specifics */));
296 EXPECT_FALSE(value_without_specifics->empty()); 304 EXPECT_FALSE(value_without_specifics->empty());
297 EXPECT_FALSE(ValueHasSpecifics(*(value_without_specifics.get()), 305 EXPECT_FALSE(ValueHasSpecifics(*(value_without_specifics.get()),
298 "get_updates.entries")); 306 "get_updates.entries"));
299 } 307 }
300 308
301 } // namespace 309 } // namespace
302 } // namespace syncer 310 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/proto_value_conversions.cc ('k') | sync/protocol/sync.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698