#include "chrome/browser/autofill/autofill_uitest_util.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/test/run_until.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/autofill/chrome_autofill_client.h"
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/core/browser/autofill_external_delegate.h"
#include "components/autofill/core/browser/autofill_manager.h"
#include "components/autofill/core/browser/browser_autofill_manager.h"
#include "components/autofill/core/browser/browser_autofill_manager_test_api.h"
#include "components/autofill/core/browser/data_model/autofill_i18n_api.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_test_api.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/autofill/core/browser/personal_data_manager_observer.h"
#include "components/autofill/core/browser/personal_data_manager_test_utils.h"
#include "components/autofill/core/browser/test_autofill_external_delegate.h"
#include "components/autofill/core/browser/test_autofill_manager_waiter.h"
#include "components/autofill/core/common/autofill_test_utils.h"
#include "components/autofill/core/common/form_data_test_api.h"
#include "components/autofill/core/common/form_field_data.h"
#include "content/public/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
AssertionResult;
static PersonalDataManager* GetPersonalDataManager(Profile* profile) { … }
void AddTestProfile(Profile* base_profile, const AutofillProfile& profile) { … }
void AddTestCreditCard(Profile* base_profile, const CreditCard& card) { … }
void AddTestServerCreditCard(Profile* base_profile, const CreditCard& card) { … }
void AddTestAutofillData(Profile* base_profile,
const AutofillProfile& profile,
const CreditCard& card) { … }
void WaitForPersonalDataChange(Profile* base_profile) { … }
void WaitForPersonalDataManagerToBeLoaded(Profile* base_profile) { … }
[[nodiscard]] AssertionResult GenerateTestAutofillPopup(
ContentAutofillDriver& driver,
Profile* profile,
bool expect_popup_to_be_shown,
gfx::RectF element_bounds) { … }
}