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

Unified Diff: chrome/browser/sync/test/integration/autofill_helper.cc

Issue 1850253002: Revert of [Sync] Eliminate verifier profile from sync_integration_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/test/integration/autofill_helper.cc
diff --git a/chrome/browser/sync/test/integration/autofill_helper.cc b/chrome/browser/sync/test/integration/autofill_helper.cc
index 0fe79fd5997002d2c2591a687b94e3587b2e41cb..b02a42c838c1ac6121e40c6be615051c76bcc266 100644
--- a/chrome/browser/sync/test/integration/autofill_helper.cc
+++ b/chrome/browser/sync/test/integration/autofill_helper.cc
@@ -315,8 +315,7 @@
}
void AddProfile(int profile, const AutofillProfile& autofill_profile) {
- const std::vector<AutofillProfile*>& all_profiles =
- GetAllAutoFillProfiles(profile);
+ const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
std::vector<AutofillProfile> autofill_profiles;
for (size_t i = 0; i < all_profiles.size(); ++i)
autofill_profiles.push_back(*all_profiles[i]);
@@ -325,8 +324,7 @@
}
void RemoveProfile(int profile, const std::string& guid) {
- const std::vector<AutofillProfile*>& all_profiles =
- GetAllAutoFillProfiles(profile);
+ const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
std::vector<AutofillProfile> autofill_profiles;
for (size_t i = 0; i < all_profiles.size(); ++i) {
if (all_profiles[i]->guid() != guid)
@@ -339,8 +337,7 @@
const std::string& guid,
const AutofillType& type,
const base::string16& value) {
- const std::vector<AutofillProfile*>& all_profiles =
- GetAllAutoFillProfiles(profile);
+ const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
std::vector<AutofillProfile> profiles;
for (size_t i = 0; i < all_profiles.size(); ++i) {
profiles.push_back(*all_profiles[i]);
@@ -350,7 +347,7 @@
autofill_helper::SetProfiles(profile, &profiles);
}
-const std::vector<AutofillProfile*>& GetAllAutoFillProfiles(
+const std::vector<AutofillProfile*>& GetAllProfiles(
int profile) {
MockPersonalDataManagerObserver observer;
EXPECT_CALL(observer, OnPersonalDataChanged()).
@@ -364,7 +361,7 @@
}
int GetProfileCount(int profile) {
- return GetAllAutoFillProfiles(profile).size();
+ return GetAllProfiles(profile).size();
}
int GetKeyCount(int profile) {
@@ -412,9 +409,9 @@
bool ProfilesMatch(int profile_a, int profile_b) {
const std::vector<AutofillProfile*>& autofill_profiles_a =
- GetAllAutoFillProfiles(profile_a);
+ GetAllProfiles(profile_a);
const std::vector<AutofillProfile*>& autofill_profiles_b =
- GetAllAutoFillProfiles(profile_b);
+ GetAllProfiles(profile_b);
return ProfilesMatchImpl(
profile_a, autofill_profiles_a, profile_b, autofill_profiles_b);
}
« no previous file with comments | « chrome/browser/sync/test/integration/autofill_helper.h ('k') | chrome/browser/sync/test/integration/extensions_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698