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

Unified Diff: components/autofill/core/browser/password_autofill_manager_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 7 years 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/password_autofill_manager_unittest.cc
diff --git a/components/autofill/core/browser/password_autofill_manager_unittest.cc b/components/autofill/core/browser/password_autofill_manager_unittest.cc
index 5a4767a46600c948f40ac4f4b532c8988866ed97..73241a5ff73007612dcde40a1cd0f59a91653428 100644
--- a/components/autofill/core/browser/password_autofill_manager_unittest.cc
+++ b/components/autofill/core/browser/password_autofill_manager_unittest.cc
@@ -38,15 +38,15 @@ class PasswordAutofillManagerTest : public testing::Test {
virtual void SetUp() OVERRIDE {
// Add a preferred login and an additional login to the FillData.
- base::string16 username1 = ASCIIToUTF16(kAliceUsername);
- base::string16 password1 = ASCIIToUTF16(kAlicePassword);
+ base::string16 username1 = base::ASCIIToUTF16(kAliceUsername);
+ base::string16 password1 = base::ASCIIToUTF16(kAlicePassword);
- username_field_.name = ASCIIToUTF16(kUsernameName);
+ username_field_.name = base::ASCIIToUTF16(kUsernameName);
username_field_.value = username1;
fill_data_.basic_data.fields.push_back(username_field_);
FormFieldData password_field;
- password_field.name = ASCIIToUTF16(kPasswordName);
+ password_field.name = base::ASCIIToUTF16(kPasswordName);
password_field.value = password1;
fill_data_.basic_data.fields.push_back(password_field);
@@ -78,25 +78,25 @@ class PasswordAutofillManagerTest : public testing::Test {
TEST_F(PasswordAutofillManagerTest, DidAcceptAutofillSuggestion) {
EXPECT_CALL(*autofill_driver(),
RendererShouldAcceptPasswordAutofillSuggestion(
- ASCIIToUTF16(kAliceUsername)));
+ base::ASCIIToUTF16(kAliceUsername)));
EXPECT_TRUE(password_autofill_manager()->DidAcceptAutofillSuggestion(
- username_field(), ASCIIToUTF16(kAliceUsername)));
+ username_field(), base::ASCIIToUTF16(kAliceUsername)));
EXPECT_CALL(*autofill_driver(),
RendererShouldAcceptPasswordAutofillSuggestion(
- ASCIIToUTF16(kInvalidUsername))).Times(0);
+ base::ASCIIToUTF16(kInvalidUsername))).Times(0);
EXPECT_FALSE(password_autofill_manager()->DidAcceptAutofillSuggestion(
- username_field(), ASCIIToUTF16(kInvalidUsername)));
+ username_field(), base::ASCIIToUTF16(kInvalidUsername)));
FormFieldData invalid_username_field;
- invalid_username_field.name = ASCIIToUTF16(kInvalidUsername);
+ invalid_username_field.name = base::ASCIIToUTF16(kInvalidUsername);
EXPECT_FALSE(password_autofill_manager()->DidAcceptAutofillSuggestion(
- invalid_username_field, ASCIIToUTF16(kAliceUsername)));
+ invalid_username_field, base::ASCIIToUTF16(kAliceUsername)));
password_autofill_manager()->Reset();
EXPECT_FALSE(password_autofill_manager()->DidAcceptAutofillSuggestion(
- username_field(), ASCIIToUTF16(kAliceUsername)));
+ username_field(), base::ASCIIToUTF16(kAliceUsername)));
}
} // namespace autofill
« no previous file with comments | « components/autofill/core/browser/name_field_unittest.cc ('k') | components/autofill/core/browser/personal_data_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698