#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "chrome/browser/sync/test/integration/autofill_helper.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "components/autofill/core/browser/address_data_manager.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/data_model/credit_card.h"
#include "components/autofill/core/browser/payments_data_manager.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/profile_token_quality.h"
#include "components/autofill/core/browser/profile_token_quality_test_api.h"
#include "components/autofill/core/browser/webdata/autofill_table_utils.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/sync/engine/cycle/entity_change_metric_recording.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
AutofillProfile;
CreditCard;
PersonalDataManager;
AddProfile;
CreateAutofillProfile;
CreateUniqueAutofillProfile;
GetAllAutoFillProfiles;
GetPersonalDataManager;
GetProfileCount;
PROFILE_FRASIER;
PROFILE_HOMER;
PROFILE_MARION;
PROFILE_NULL;
ProfilesMatch;
RemoveProfile;
SetCreditCards;
UpdateProfile;
class TwoClientAutofillProfileSyncTest : public SyncTest { … };
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
PersonalDataManagerSanity) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
SyncHistogramsInitialSync) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, AddDuplicateProfiles) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
SameProfileWithConflict) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, AddEmptyProfile) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, AddProfile) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
AddProfile_BeforeSyncStart) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
ClientsAddSameProfile) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
AddMultipleProfilesOnOneClient) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
AddMultipleProfilesOnTwoClients) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, DeleteProfile) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, UpdateFields) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
UpdateVerificationStatus) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
UpdateConflictingFields) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
UpdateConflictingFieldsDuringInitialMerge) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, DeleteAndUpdate) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
DeleteAndUpdateWithStrongConsistency) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, MaxLength) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, ExceedsMaxLength) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, NoCreditCardSync) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest,
E2E_ONLY(TwoClientsAddAutofillProfiles)) { … }
IN_PROC_BROWSER_TEST_F(TwoClientAutofillProfileSyncTest, ProfileTokenQuality) { … }
}