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

Side by Side Diff: components/autofill/core/browser/credit_card_field_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/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/memory/scoped_vector.h" 6 #include "base/memory/scoped_vector.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "components/autofill/core/browser/autofill_field.h" 8 #include "components/autofill/core/browser/autofill_field.h"
9 #include "components/autofill/core/browser/autofill_scanner.h" 9 #include "components/autofill/core/browser/autofill_scanner.h"
10 #include "components/autofill/core/browser/credit_card_field.h" 10 #include "components/autofill/core/browser/credit_card_field.h"
11 #include "components/autofill/core/common/form_field_data.h" 11 #include "components/autofill/core/common/form_field_data.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 using base::ASCIIToUTF16;
15
14 namespace autofill { 16 namespace autofill {
15 17
16 class CreditCardFieldTest : public testing::Test { 18 class CreditCardFieldTest : public testing::Test {
17 public: 19 public:
18 CreditCardFieldTest() {} 20 CreditCardFieldTest() {}
19 virtual ~CreditCardFieldTest() {} 21 virtual ~CreditCardFieldTest() {}
20 22
21 protected: 23 protected:
22 ScopedVector<const AutofillField> list_; 24 ScopedVector<const AutofillField> list_;
23 scoped_ptr<const CreditCardField> field_; 25 scoped_ptr<const CreditCardField> field_;
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 field_type_map_.find(ASCIIToUTF16("number1")) != field_type_map_.end()); 341 field_type_map_.find(ASCIIToUTF16("number1")) != field_type_map_.end());
340 EXPECT_EQ(CREDIT_CARD_NUMBER, 342 EXPECT_EQ(CREDIT_CARD_NUMBER,
341 field_type_map_[ASCIIToUTF16("number1")]); 343 field_type_map_[ASCIIToUTF16("number1")]);
342 ASSERT_TRUE( 344 ASSERT_TRUE(
343 field_type_map_.find(ASCIIToUTF16("date2")) != field_type_map_.end()); 345 field_type_map_.find(ASCIIToUTF16("date2")) != field_type_map_.end());
344 EXPECT_EQ(CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR, 346 EXPECT_EQ(CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR,
345 field_type_map_[ASCIIToUTF16("date2")]); 347 field_type_map_[ASCIIToUTF16("date2")]);
346 } 348 }
347 349
348 } // namespace autofill 350 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/credit_card_field.cc ('k') | components/autofill/core/browser/credit_card_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698