Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: components/autofill/content/browser/wallet/full_wallet_unittest.cc

Issue 151383003: Updates to wallet for i18n (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: retry upload Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 19 matching lines...) Expand all
30 " \"phone_number\":\"phone_number\"," 30 " \"phone_number\":\"phone_number\","
31 " \"postal_address\":" 31 " \"postal_address\":"
32 " {" 32 " {"
33 " \"recipient_name\":\"recipient_name\"," 33 " \"recipient_name\":\"recipient_name\","
34 " \"address_line\":" 34 " \"address_line\":"
35 " [" 35 " ["
36 " \"address_line_1\"," 36 " \"address_line_1\","
37 " \"address_line_2\"" 37 " \"address_line_2\""
38 " ]," 38 " ],"
39 " \"locality_name\":\"locality_name\"," 39 " \"locality_name\":\"locality_name\","
40 " \"dependent_locality_name\":\"dependent_locality_name\","
40 " \"administrative_area_name\":\"admin_area_name\"," 41 " \"administrative_area_name\":\"admin_area_name\","
41 " \"postal_code_number\":\"postal_code_number\"," 42 " \"postal_code_number\":\"postal_code_number\","
43 " \"sorting_code\":\"sorting_code\","
42 " \"country_name_code\":\"US\"" 44 " \"country_name_code\":\"US\""
43 " }" 45 " }"
44 " }," 46 " },"
45 " \"shipping_address\":" 47 " \"shipping_address\":"
46 " {" 48 " {"
47 " \"id\":\"address_id\"," 49 " \"id\":\"address_id\","
48 " \"phone_number\":\"ship_phone_number\"," 50 " \"phone_number\":\"ship_phone_number\","
49 " \"postal_address\":" 51 " \"postal_address\":"
50 " {" 52 " {"
51 " \"recipient_name\":\"ship_recipient_name\"," 53 " \"recipient_name\":\"ship_recipient_name\","
52 " \"address_line\":" 54 " \"address_line\":"
53 " [" 55 " ["
54 " \"ship_address_line_1\"," 56 " \"ship_address_line_1\","
55 " \"ship_address_line_2\"" 57 " \"ship_address_line_2\""
56 " ]," 58 " ],"
57 " \"locality_name\":\"ship_locality_name\"," 59 " \"locality_name\":\"ship_locality_name\","
60 " \"dependent_locality_name\":\"ship_dependent_locality_name\","
58 " \"administrative_area_name\":\"ship_admin_area_name\"," 61 " \"administrative_area_name\":\"ship_admin_area_name\","
59 " \"postal_code_number\":\"ship_postal_code_number\"," 62 " \"postal_code_number\":\"ship_postal_code_number\","
63 " \"sorting_code\":\"ship_sorting_code\","
60 " \"country_name_code\":\"US\"" 64 " \"country_name_code\":\"US\""
61 " }" 65 " }"
62 " }," 66 " },"
63 " \"required_action\":" 67 " \"required_action\":"
64 " [" 68 " ["
65 " ]" 69 " ]"
66 "}"; 70 "}";
67 71
68 const char kFullWalletMissingExpirationMonth[] = 72 const char kFullWalletMissingExpirationMonth[] =
69 "{" 73 "{"
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 full_wallet->GetInfo( 531 full_wallet->GetInfo(
528 "", AutofillType(CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR))); 532 "", AutofillType(CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR)));
529 EXPECT_TRUE(GetTestAddress()->EqualsIgnoreID( 533 EXPECT_TRUE(GetTestAddress()->EqualsIgnoreID(
530 *full_wallet->billing_address())); 534 *full_wallet->billing_address()));
531 EXPECT_TRUE(GetTestShippingAddress()->EqualsIgnoreID( 535 EXPECT_TRUE(GetTestShippingAddress()->EqualsIgnoreID(
532 *full_wallet->shipping_address())); 536 *full_wallet->shipping_address()));
533 } 537 }
534 538
535 } // namespace wallet 539 } // namespace wallet
536 } // namespace autofill 540 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698