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

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

Issue 112433004: Update uses of UTF conversions in chrome_frame/, chromeos/, components/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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"
11 #include "components/autofill/content/browser/wallet/full_wallet.h" 11 #include "components/autofill/content/browser/wallet/full_wallet.h"
12 #include "components/autofill/content/browser/wallet/required_action.h" 12 #include "components/autofill/content/browser/wallet/required_action.h"
13 #include "components/autofill/content/browser/wallet/wallet_test_util.h" 13 #include "components/autofill/content/browser/wallet/wallet_test_util.h"
14 #include "components/autofill/core/browser/autofill_type.h" 14 #include "components/autofill/core/browser/autofill_type.h"
15 #include "components/autofill/core/browser/field_types.h" 15 #include "components/autofill/core/browser/field_types.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using base::ASCIIToUTF16;
19
18 namespace { 20 namespace {
19 21
20 const char kFullWalletValidResponse[] = 22 const char kFullWalletValidResponse[] =
21 "{" 23 "{"
22 " \"expiration_month\":12," 24 " \"expiration_month\":12,"
23 " \"expiration_year\":3000," 25 " \"expiration_year\":3000,"
24 " \"iin\":\"iin\"," 26 " \"iin\":\"iin\","
25 " \"rest\":\"rest\"," 27 " \"rest\":\"rest\","
26 " \"billing_address\":" 28 " \"billing_address\":"
27 " {" 29 " {"
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 full_wallet->GetInfo( 523 full_wallet->GetInfo(
522 AutofillType(CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR))); 524 AutofillType(CREDIT_CARD_EXP_DATE_2_DIGIT_YEAR)));
523 EXPECT_TRUE(GetTestAddress()->EqualsIgnoreID( 525 EXPECT_TRUE(GetTestAddress()->EqualsIgnoreID(
524 *full_wallet->billing_address())); 526 *full_wallet->billing_address()));
525 EXPECT_TRUE(GetTestShippingAddress()->EqualsIgnoreID( 527 EXPECT_TRUE(GetTestShippingAddress()->EqualsIgnoreID(
526 *full_wallet->shipping_address())); 528 *full_wallet->shipping_address()));
527 } 529 }
528 530
529 } // namespace wallet 531 } // namespace wallet
530 } // namespace autofill 532 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698