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 "chrome/browser/autofill/wallet/wallet_address.h" | 10 #include "components/autofill/browser/wallet/wallet_address.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const char kAddressMissingObjectId[] = | 15 const char kAddressMissingObjectId[] = |
16 "{" | 16 "{" |
17 " \"phone_number\":\"phone_number\"," | 17 " \"phone_number\":\"phone_number\"," |
18 " \"postal_address\":" | 18 " \"postal_address\":" |
19 " {" | 19 " {" |
20 " \"recipient_name\":\"recipient_name\"," | 20 " \"recipient_name\":\"recipient_name\"," |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 ASCIIToUTF16("administrative_area_name"), | 304 ASCIIToUTF16("administrative_area_name"), |
305 ASCIIToUTF16("postal_code_number"), | 305 ASCIIToUTF16("postal_code_number"), |
306 ASCIIToUTF16("phone_number"), | 306 ASCIIToUTF16("phone_number"), |
307 "id"); | 307 "id"); |
308 | 308 |
309 EXPECT_TRUE(expected.Equals(address.ToDictionaryWithID().get())); | 309 EXPECT_TRUE(expected.Equals(address.ToDictionaryWithID().get())); |
310 } | 310 } |
311 | 311 |
312 } // namespace wallet | 312 } // namespace wallet |
313 } // namespace autofill | 313 } // namespace autofill |
OLD | NEW |