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

Side by Side Diff: components/autofill/core/browser/autofill_profile_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/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/guid.h" 6 #include "base/guid.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "components/autofill/core/browser/autofill_profile.h" 12 #include "components/autofill/core/browser/autofill_profile.h"
13 #include "components/autofill/core/browser/autofill_test_utils.h" 13 #include "components/autofill/core/browser/autofill_test_utils.h"
14 #include "components/autofill/core/browser/autofill_type.h" 14 #include "components/autofill/core/browser/autofill_type.h"
15 #include "components/autofill/core/common/form_field_data.h" 15 #include "components/autofill/core/common/form_field_data.h"
16 #include "grit/component_strings.h" 16 #include "grit/component_strings.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using base::ASCIIToUTF16;
20
19 namespace autofill { 21 namespace autofill {
20 22
21 namespace { 23 namespace {
22 24
23 base::string16 GetLabel(AutofillProfile* profile) { 25 base::string16 GetLabel(AutofillProfile* profile) {
24 std::vector<AutofillProfile*> profiles; 26 std::vector<AutofillProfile*> profiles;
25 profiles.push_back(profile); 27 profiles.push_back(profile);
26 std::vector<base::string16> labels; 28 std::vector<base::string16> labels;
27 AutofillProfile::CreateDifferentiatingLabels(profiles, &labels); 29 AutofillProfile::CreateDifferentiatingLabels(profiles, &labels);
28 return labels[0]; 30 return labels[0];
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 AutofillProfile profile(base::GenerateGUID(), "https://www.example.com/"); 844 AutofillProfile profile(base::GenerateGUID(), "https://www.example.com/");
843 845
844 profile.SetInfo(AutofillType(EMAIL_ADDRESS), 846 profile.SetInfo(AutofillType(EMAIL_ADDRESS),
845 ASCIIToUTF16("\tuser@example.com "), 847 ASCIIToUTF16("\tuser@example.com "),
846 "en-US"); 848 "en-US");
847 EXPECT_EQ(ASCIIToUTF16("user@example.com"), 849 EXPECT_EQ(ASCIIToUTF16("user@example.com"),
848 profile.GetRawInfo(EMAIL_ADDRESS)); 850 profile.GetRawInfo(EMAIL_ADDRESS));
849 } 851 }
850 852
851 } // namespace autofill 853 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_profile.cc ('k') | components/autofill/core/browser/autofill_regexes_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698