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_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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 } | 132 } |
133 | 133 |
134 TEST_F(ProtoValueConversionsTest, AutofillProfileSpecificsToValue) { | 134 TEST_F(ProtoValueConversionsTest, AutofillProfileSpecificsToValue) { |
135 TestSpecificsToValue(AutofillProfileSpecificsToValue); | 135 TestSpecificsToValue(AutofillProfileSpecificsToValue); |
136 } | 136 } |
137 | 137 |
138 TEST_F(ProtoValueConversionsTest, AutofillWalletSpecificsToValue) { | 138 TEST_F(ProtoValueConversionsTest, AutofillWalletSpecificsToValue) { |
139 TestSpecificsToValue(AutofillWalletSpecificsToValue); | 139 TestSpecificsToValue(AutofillWalletSpecificsToValue); |
140 } | 140 } |
141 | 141 |
| 142 TEST_F(ProtoValueConversionsTest, WalletMetadataSpecificsToValue) { |
| 143 TestSpecificsToValue(WalletMetadataSpecificsToValue); |
| 144 } |
| 145 |
142 TEST_F(ProtoValueConversionsTest, BookmarkSpecificsToValue) { | 146 TEST_F(ProtoValueConversionsTest, BookmarkSpecificsToValue) { |
143 TestSpecificsToValue(BookmarkSpecificsToValue); | 147 TestSpecificsToValue(BookmarkSpecificsToValue); |
144 } | 148 } |
145 | 149 |
146 TEST_F(ProtoValueConversionsTest, BookmarkSpecificsData) { | 150 TEST_F(ProtoValueConversionsTest, BookmarkSpecificsData) { |
147 const base::Time creation_time(base::Time::Now()); | 151 const base::Time creation_time(base::Time::Now()); |
148 const std::string icon_url = "http://www.google.com/favicon.ico"; | 152 const std::string icon_url = "http://www.google.com/favicon.ico"; |
149 sync_pb::BookmarkSpecifics specifics; | 153 sync_pb::BookmarkSpecifics specifics; |
150 specifics.set_creation_time_us(creation_time.ToInternalValue()); | 154 specifics.set_creation_time_us(creation_time.ToInternalValue()); |
151 specifics.set_icon_url(icon_url); | 155 specifics.set_icon_url(icon_url); |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 EXPECT_FALSE(ValueHasSpecifics(*(value_without_specifics.get()), | 397 EXPECT_FALSE(ValueHasSpecifics(*(value_without_specifics.get()), |
394 "get_updates.entries")); | 398 "get_updates.entries")); |
395 } | 399 } |
396 | 400 |
397 TEST_F(ProtoValueConversionsTest, AttachmentIdProtoToValue) { | 401 TEST_F(ProtoValueConversionsTest, AttachmentIdProtoToValue) { |
398 TestSpecificsToValue(AttachmentIdProtoToValue); | 402 TestSpecificsToValue(AttachmentIdProtoToValue); |
399 } | 403 } |
400 | 404 |
401 } // namespace | 405 } // namespace |
402 } // namespace syncer | 406 } // namespace syncer |
OLD | NEW |