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

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

Issue 1851243002: [Sync] Eliminate verifier profile from sync_integration_tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: do not remove AwaitQuiescence() 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 b02a42c838c1ac6121e40c6be615051c76bcc266..0fe79fd5997002d2c2591a687b94e3587b2e41cb 100644
--- a/chrome/browser/sync/test/integration/autofill_helper.cc
+++ b/chrome/browser/sync/test/integration/autofill_helper.cc
@@ -315,7 +315,8 @@ void SetCreditCards(int profile, std::vector<CreditCard>* credit_cards) {
}
void AddProfile(int profile, const AutofillProfile& autofill_profile) {
- const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
+ const std::vector<AutofillProfile*>& all_profiles =
+ GetAllAutoFillProfiles(profile);
std::vector<AutofillProfile> autofill_profiles;
for (size_t i = 0; i < all_profiles.size(); ++i)
autofill_profiles.push_back(*all_profiles[i]);
@@ -324,7 +325,8 @@ void AddProfile(int profile, const AutofillProfile& autofill_profile) {
}
void RemoveProfile(int profile, const std::string& guid) {
- const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
+ const std::vector<AutofillProfile*>& all_profiles =
+ GetAllAutoFillProfiles(profile);
std::vector<AutofillProfile> autofill_profiles;
for (size_t i = 0; i < all_profiles.size(); ++i) {
if (all_profiles[i]->guid() != guid)
@@ -337,7 +339,8 @@ void UpdateProfile(int profile,
const std::string& guid,
const AutofillType& type,
const base::string16& value) {
- const std::vector<AutofillProfile*>& all_profiles = GetAllProfiles(profile);
+ const std::vector<AutofillProfile*>& all_profiles =
+ GetAllAutoFillProfiles(profile);
std::vector<AutofillProfile> profiles;
for (size_t i = 0; i < all_profiles.size(); ++i) {
profiles.push_back(*all_profiles[i]);
@@ -347,7 +350,7 @@ void UpdateProfile(int profile,
autofill_helper::SetProfiles(profile, &profiles);
}
-const std::vector<AutofillProfile*>& GetAllProfiles(
+const std::vector<AutofillProfile*>& GetAllAutoFillProfiles(
int profile) {
MockPersonalDataManagerObserver observer;
EXPECT_CALL(observer, OnPersonalDataChanged()).
@@ -361,7 +364,7 @@ const std::vector<AutofillProfile*>& GetAllProfiles(
}
int GetProfileCount(int profile) {
- return GetAllProfiles(profile).size();
+ return GetAllAutoFillProfiles(profile).size();
}
int GetKeyCount(int profile) {
@@ -409,9 +412,9 @@ bool ProfilesMatchImpl(
bool ProfilesMatch(int profile_a, int profile_b) {
const std::vector<AutofillProfile*>& autofill_profiles_a =
- GetAllProfiles(profile_a);
+ GetAllAutoFillProfiles(profile_a);
const std::vector<AutofillProfile*>& autofill_profiles_b =
- GetAllProfiles(profile_b);
+ GetAllAutoFillProfiles(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