| 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/string_number_conversions.h" | 10 #include "base/string_number_conversions.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |