| 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 #include "base/json/json_reader.h" | 5 #include "base/json/json_reader.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "components/autofill/browser/wallet/required_action.h" | 10 #include "components/autofill/browser/wallet/required_action.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 " \"expiration_year\":2012," | 27 " \"expiration_year\":2012," |
| 28 " \"billing_address\":" | 28 " \"billing_address\":" |
| 29 " {" | 29 " {" |
| 30 " \"name\":\"name\"," | 30 " \"name\":\"name\"," |
| 31 " \"address1\":\"address1\"," | 31 " \"address1\":\"address1\"," |
| 32 " \"address2\":\"address2\"," | 32 " \"address2\":\"address2\"," |
| 33 " \"city\":\"city\"," | 33 " \"city\":\"city\"," |
| 34 " \"state\":\"state\"," | 34 " \"state\":\"state\"," |
| 35 " \"postal_code\":\"postal_code\"," | 35 " \"postal_code\":\"postal_code\"," |
| 36 " \"phone_number\":\"phone_number\"," | 36 " \"phone_number\":\"phone_number\"," |
| 37 " \"country_code\":\"country_code\"" | 37 " \"country_code\":\"country_code\"," |
| 38 " \"type\":\"FULL\"" |
| 38 " }," | 39 " }," |
| 39 " \"status\":\"VALID\"," | 40 " \"status\":\"VALID\"," |
| 40 " \"object_id\":\"object_id\"" | 41 " \"object_id\":\"object_id\"" |
| 41 "}"; | 42 "}"; |
| 42 | 43 |
| 43 const char kMaskedInstrumentMissingStatus[] = | 44 const char kMaskedInstrumentMissingStatus[] = |
| 44 "{" | 45 "{" |
| 45 " \"descriptive_name\":\"descriptive_name\"," | 46 " \"descriptive_name\":\"descriptive_name\"," |
| 46 " \"type\":\"VISA\"," | 47 " \"type\":\"VISA\"," |
| 47 " \"supported_currency\":" | 48 " \"supported_currency\":" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 " \"expiration_year\":2012," | 307 " \"expiration_year\":2012," |
| 307 " \"billing_address\":" | 308 " \"billing_address\":" |
| 308 " {" | 309 " {" |
| 309 " \"name\":\"name\"," | 310 " \"name\":\"name\"," |
| 310 " \"address1\":\"address1\"," | 311 " \"address1\":\"address1\"," |
| 311 " \"address2\":\"address2\"," | 312 " \"address2\":\"address2\"," |
| 312 " \"city\":\"city\"," | 313 " \"city\":\"city\"," |
| 313 " \"state\":\"state\"," | 314 " \"state\":\"state\"," |
| 314 " \"postal_code\":\"postal_code\"," | 315 " \"postal_code\":\"postal_code\"," |
| 315 " \"phone_number\":\"phone_number\"," | 316 " \"phone_number\":\"phone_number\"," |
| 316 " \"country_code\":\"country_code\"" | 317 " \"country_code\":\"country_code\"," |
| 318 " \"type\":\"FULL\"" |
| 317 " }," | 319 " }," |
| 318 " \"status\":\"VALID\"," | 320 " \"status\":\"VALID\"," |
| 319 " \"object_id\":\"object_id\"" | 321 " \"object_id\":\"object_id\"" |
| 320 " }" | 322 " }" |
| 321 " ]," | 323 " ]," |
| 322 " \"default_instrument_id\":\"default_instrument_id\"," | 324 " \"default_instrument_id\":\"default_instrument_id\"," |
| 323 " \"address\":" | 325 " \"address\":" |
| 324 " [" | 326 " [" |
| 325 " {" | 327 " {" |
| 326 " \"id\":\"id\"," | 328 " \"id\":\"id\"," |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 ASCIIToUTF16("display_name"))); | 561 ASCIIToUTF16("display_name"))); |
| 560 expected.AddLegalDocument(legal_document.Pass()); | 562 expected.AddLegalDocument(legal_document.Pass()); |
| 561 expected.AddLegalDocument( | 563 expected.AddLegalDocument( |
| 562 WalletItems::LegalDocument::CreatePrivacyPolicyDocument()); | 564 WalletItems::LegalDocument::CreatePrivacyPolicyDocument()); |
| 563 | 565 |
| 564 EXPECT_EQ(expected, *WalletItems::CreateWalletItems(*dict)); | 566 EXPECT_EQ(expected, *WalletItems::CreateWalletItems(*dict)); |
| 565 } | 567 } |
| 566 | 568 |
| 567 } // namespace wallet | 569 } // namespace wallet |
| 568 } // namespace autofill | 570 } // namespace autofill |
| OLD | NEW |