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

Unified Diff: chrome/browser/sync/profile_sync_service_autofill_unittest.cc

Issue 1582353006: CountryNames: Separate data creation from usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@571610_exposeCountryNamesToTesting
Patch Set: Just rebased Created 4 years, 11 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: chrome/browser/sync/profile_sync_service_autofill_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
index 706d28c7ba7268c9e1a1f4eb3cfc2d2f019a3dce..ccd554d8b0308de654af61501efe25af454a5ea6 100644
--- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
@@ -39,6 +39,7 @@
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
+#include "components/autofill/core/browser/country_names.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/webdata/autocomplete_syncable_service.h"
#include "components/autofill/core/browser/webdata/autofill_change.h"
@@ -429,7 +430,9 @@ class ProfileSyncServiceAutofillTest
ProfileSyncServiceAutofillTest()
: profile_manager_(TestingBrowserProcess::GetGlobal()),
debug_ptr_factory_(this) {
+ autofill::CountryNames::SetLocaleString("en-US");
}
+
~ProfileSyncServiceAutofillTest() override {}
void SetUp() override {
@@ -607,7 +610,7 @@ class ProfileSyncServiceAutofillTest
AutofillProfile p;
p.set_guid(autofill.profile().guid());
AutofillProfileSyncableService::OverwriteProfileWithServerData(
- autofill.profile(), &p, "en-US");
+ autofill.profile(), &p);
profiles->push_back(p);
}
child_id = child_node.GetSuccessorId();
@@ -633,8 +636,8 @@ class ProfileSyncServiceAutofillTest
child_node.GetEntitySpecifics().autofill_profile());
AutofillProfile p;
p.set_guid(autofill.guid());
- AutofillProfileSyncableService::OverwriteProfileWithServerData(
- autofill, &p, "en-US");
+ AutofillProfileSyncableService::OverwriteProfileWithServerData(autofill,
+ &p);
profiles->push_back(p);
child_id = child_node.GetSuccessorId();
}

Powered by Google App Engine
This is Rietveld 408576698