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

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

Issue 1066623008: Sync bookmark app icon urls and sizes, and download icons for new apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated sync value conversions Created 5 years, 7 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
« no previous file with comments | « 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) 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/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 EXPECT_TRUE(meta_info->GetString("value", &meta_value)); 175 EXPECT_TRUE(meta_info->GetString("value", &meta_value));
176 EXPECT_EQ("key1", meta_key); 176 EXPECT_EQ("key1", meta_key);
177 EXPECT_EQ("value1", meta_value); 177 EXPECT_EQ("value1", meta_value);
178 ASSERT_TRUE(meta_info_list->GetDictionary(1, &meta_info)); 178 ASSERT_TRUE(meta_info_list->GetDictionary(1, &meta_info));
179 EXPECT_TRUE(meta_info->GetString("key", &meta_key)); 179 EXPECT_TRUE(meta_info->GetString("key", &meta_key));
180 EXPECT_TRUE(meta_info->GetString("value", &meta_value)); 180 EXPECT_TRUE(meta_info->GetString("value", &meta_value));
181 EXPECT_EQ("key2", meta_key); 181 EXPECT_EQ("key2", meta_key);
182 EXPECT_EQ("value2", meta_value); 182 EXPECT_EQ("value2", meta_value);
183 } 183 }
184 184
185 TEST_F(ProtoValueConversionsTest, LinkedAppIconInfoToValue) {
186 TestSpecificsToValue(LinkedAppIconInfoToValue);
187 }
188
185 TEST_F(ProtoValueConversionsTest, PriorityPreferenceSpecificsToValue) { 189 TEST_F(ProtoValueConversionsTest, PriorityPreferenceSpecificsToValue) {
186 TestSpecificsToValue(PriorityPreferenceSpecificsToValue); 190 TestSpecificsToValue(PriorityPreferenceSpecificsToValue);
187 } 191 }
188 192
189 TEST_F(ProtoValueConversionsTest, DeviceInfoSpecificsToValue) { 193 TEST_F(ProtoValueConversionsTest, DeviceInfoSpecificsToValue) {
190 TestSpecificsToValue(DeviceInfoSpecificsToValue); 194 TestSpecificsToValue(DeviceInfoSpecificsToValue);
191 } 195 }
192 196
193 TEST_F(ProtoValueConversionsTest, ExperimentsSpecificsToValue) { 197 TEST_F(ProtoValueConversionsTest, ExperimentsSpecificsToValue) {
194 TestSpecificsToValue(ExperimentsSpecificsToValue); 198 TestSpecificsToValue(ExperimentsSpecificsToValue);
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 EXPECT_FALSE(ValueHasSpecifics(*(value_without_specifics.get()), 393 EXPECT_FALSE(ValueHasSpecifics(*(value_without_specifics.get()),
390 "get_updates.entries")); 394 "get_updates.entries"));
391 } 395 }
392 396
393 TEST_F(ProtoValueConversionsTest, AttachmentIdProtoToValue) { 397 TEST_F(ProtoValueConversionsTest, AttachmentIdProtoToValue) {
394 TestSpecificsToValue(AttachmentIdProtoToValue); 398 TestSpecificsToValue(AttachmentIdProtoToValue);
395 } 399 }
396 400
397 } // namespace 401 } // namespace
398 } // namespace syncer 402 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/proto_value_conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698