| 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_common_test.h" | |
| 12 #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" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 const char kAddressMissingObjectId[] = | 17 const char kAddressMissingObjectId[] = |
| 18 "{" | 18 "{" |
| 19 " \"phone_number\":\"phone_number\"," | 19 " \"phone_number\":\"phone_number\"," |
| 20 " \"postal_address\":" | 20 " \"postal_address\":" |
| 21 " {" | 21 " {" |
| 22 " \"recipient_name\":\"recipient_name\"," | 22 " \"recipient_name\":\"recipient_name\"," |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 ASCIIToUTF16("locality_name"), | 469 ASCIIToUTF16("locality_name"), |
| 470 ASCIIToUTF16("administrative_area_name"), | 470 ASCIIToUTF16("administrative_area_name"), |
| 471 ASCIIToUTF16("postal_code_number"), | 471 ASCIIToUTF16("postal_code_number"), |
| 472 ASCIIToUTF16("phone_number"), | 472 ASCIIToUTF16("phone_number"), |
| 473 "id1"); | 473 "id1"); |
| 474 EXPECT_EQ(base::string16(), address3.GetInfo(type, "en-US")); | 474 EXPECT_EQ(base::string16(), address3.GetInfo(type, "en-US")); |
| 475 } | 475 } |
| 476 | 476 |
| 477 } // namespace wallet | 477 } // namespace wallet |
| 478 } // namespace autofill | 478 } // namespace autofill |
| OLD | NEW |