#include "components/autofill/core/browser/profile_token_quality.h"
#include <memory>
#include <string>
#include <string_view>
#include <vector>
#include "base/ranges/algorithm.h"
#include "base/test/task_environment.h"
#include "base/types/cxx23_to_underlying.h"
#include "components/autofill/core/browser/address_data_manager.h"
#include "components/autofill/core/browser/autofill_field.h"
#include "components/autofill/core/browser/autofill_form_test_utils.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/autofill_trigger_details.h"
#include "components/autofill/core/browser/country_type.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/form_structure.h"
#include "components/autofill/core/browser/profile_token_quality_test_api.h"
#include "components/autofill/core/browser/test_autofill_client.h"
#include "components/autofill/core/browser/test_autofill_driver.h"
#include "components/autofill/core/browser/test_browser_autofill_manager.h"
#include "components/autofill/core/browser/test_personal_data_manager.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_data_test_api.h"
#include "components/autofill/core/common/form_field_data.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
ObservationType;
UnorderedElementsAre;
class ProfileTokenQualityTest : public testing::Test { … };
TEST_F(ProfileTokenQualityTest, GetObservationTypesForFieldType) { … }
TEST_F(ProfileTokenQualityTest, AddObservationsForFilledForm_Accepted) { … }
TEST_F(ProfileTokenQualityTest, AddObservationsForFilledForm_Edited) { … }
TEST_F(ProfileTokenQualityTest,
AddObservationsForFilledForm_Edited_DifferentProfile) { … }
TEST_F(ProfileTokenQualityTest, AddObservationsForFilledForm_SameField) { … }
TEST_F(ProfileTokenQualityTest, AddObservationsForFilledForm_DynamicChange) { … }
TEST_F(ProfileTokenQualityTest,
SaveObservationsForFilledFormForAllSubmittedProfiles) { … }
TEST_F(ProfileTokenQualityTest,
LoadSerializedObservationsForStoredType_InvalidData) { … }
struct DropObservationTest { … };
class ProfileTokenQualityObservationDroppingTest
: public ProfileTokenQualityTest,
public testing::WithParamInterface<DropObservationTest> { … };
TEST_P(ProfileTokenQualityObservationDroppingTest,
AddObservationsForFilledForm_DropObservations) { … }
INSTANTIATE_TEST_SUITE_P(…);
}