| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "components/autofill/content/browser/wallet/wallet_address.h" | 10 #include "components/autofill/content/browser/wallet/wallet_address.h" |
| 11 #include "components/autofill/core/browser/autofill_profile.h" | 11 #include "components/autofill/core/browser/autofill_profile.h" |
| 12 #include "components/autofill/core/browser/autofill_test_utils.h" | 12 #include "components/autofill/core/browser/autofill_test_utils.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 using base::ASCIIToUTF16; |
| 16 |
| 15 namespace { | 17 namespace { |
| 16 | 18 |
| 17 const char kAddressMissingObjectId[] = | 19 const char kAddressMissingObjectId[] = |
| 18 "{" | 20 "{" |
| 19 " \"phone_number\":\"phone_number\"," | 21 " \"phone_number\":\"phone_number\"," |
| 20 " \"postal_address\":" | 22 " \"postal_address\":" |
| 21 " {" | 23 " {" |
| 22 " \"recipient_name\":\"recipient_name\"," | 24 " \"recipient_name\":\"recipient_name\"," |
| 23 " \"address_line\":" | 25 " \"address_line\":" |
| 24 " [" | 26 " [" |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 ASCIIToUTF16("locality_name"), | 471 ASCIIToUTF16("locality_name"), |
| 470 ASCIIToUTF16("administrative_area_name"), | 472 ASCIIToUTF16("administrative_area_name"), |
| 471 ASCIIToUTF16("postal_code_number"), | 473 ASCIIToUTF16("postal_code_number"), |
| 472 ASCIIToUTF16("phone_number"), | 474 ASCIIToUTF16("phone_number"), |
| 473 "id1"); | 475 "id1"); |
| 474 EXPECT_EQ(base::string16(), address3.GetInfo(type, "en-US")); | 476 EXPECT_EQ(base::string16(), address3.GetInfo(type, "en-US")); |
| 475 } | 477 } |
| 476 | 478 |
| 477 } // namespace wallet | 479 } // namespace wallet |
| 478 } // namespace autofill | 480 } // namespace autofill |
| OLD | NEW |