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

Unified Diff: components/autofill/browser/autofill_ie_toolbar_import_win_unittest.cc

Issue 13488009: Remove application locale cache in autofill code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/browser/autofill_ie_toolbar_import_win_unittest.cc
===================================================================
--- components/autofill/browser/autofill_ie_toolbar_import_win_unittest.cc (revision 192613)
+++ components/autofill/browser/autofill_ie_toolbar_import_win_unittest.cc (working copy)
@@ -16,7 +16,8 @@
using base::win::RegKey;
// Defined in autofill_ie_toolbar_import_win.cc. Not exposed in the header file.
-bool ImportCurrentUserProfiles(std::vector<AutofillProfile>* profiles,
+bool ImportCurrentUserProfiles(const std::string& app_locale,
+ std::vector<AutofillProfile>* profiles,
std::vector<CreditCard>* credit_cards);
namespace {
@@ -157,7 +158,7 @@
std::vector<AutofillProfile> profiles;
std::vector<CreditCard> credit_cards;
- EXPECT_TRUE(ImportCurrentUserProfiles(&profiles, &credit_cards));
+ EXPECT_TRUE(ImportCurrentUserProfiles("en-US", &profiles, &credit_cards));
ASSERT_EQ(2U, profiles.size());
// The profiles are read in reverse order.
EXPECT_EQ(profile1[0].value, profiles[1].GetRawInfo(NAME_FIRST));
@@ -195,7 +196,7 @@
profiles.clear();
credit_cards.clear();
- EXPECT_TRUE(ImportCurrentUserProfiles(&profiles, &credit_cards));
+ EXPECT_TRUE(ImportCurrentUserProfiles("en-US", &profiles, &credit_cards));
// Profiles are not protected.
EXPECT_EQ(2U, profiles.size());
// Credit cards are.
« no previous file with comments | « components/autofill/browser/autofill_ie_toolbar_import_win.cc ('k') | components/autofill/browser/autofill_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698