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/browser/autofill_common_test.h" | |
11 #include "components/autofill/browser/autofill_profile.h" | |
12 #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" |
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 { | 404 { |
405 AutofillProfile profile(test::GetFullProfile()); | 405 AutofillProfile profile(test::GetFullProfile()); |
406 profile.SetRawInfo(ADDRESS_HOME_STATE, ASCIIToUTF16("txeas")); | 406 profile.SetRawInfo(ADDRESS_HOME_STATE, ASCIIToUTF16("txeas")); |
407 Address address(profile); | 407 Address address(profile); |
408 EXPECT_TRUE(address.administrative_area_name().empty()); | 408 EXPECT_TRUE(address.administrative_area_name().empty()); |
409 } | 409 } |
410 } | 410 } |
411 | 411 |
412 } // namespace wallet | 412 } // namespace wallet |
413 } // namespace autofill | 413 } // namespace autofill |
OLD | NEW |