#include "components/autofill/core/browser/autofill_ablation_study.h"
#include "base/strings/stringprintf.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "components/autofill/core/browser/autofill_optimization_guide.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/optimization_guide/core/test_optimization_guide_decider.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/icu/source/common/unicode/unistr.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
#include "url/gurl.h"
kAutofillAblationStudyAblationWeightPerMilleList1Param;
kAutofillAblationStudyAblationWeightPerMilleList2Param;
kAutofillAblationStudyAblationWeightPerMilleList3Param;
kAutofillAblationStudyAblationWeightPerMilleList4Param;
kAutofillAblationStudyAblationWeightPerMilleParam;
kAutofillAblationStudyEnabledForAddressesParam;
kAutofillAblationStudyEnabledForPaymentsParam;
kAutofillEnableAblationStudy;
namespace autofill {
namespace {
std::map<AblationGroup, int> RunNIterations(
const AutofillAblationStudy& study,
int n,
FormTypeForAblationStudy form_type,
AutofillOptimizationGuide* autofill_optimization_guide) { … }
}
class AutofillAblationStudyTest : public testing::Test { … };
class AutofillAblationStudyTestInUTC : public AutofillAblationStudyTest { … };
TEST_F(AutofillAblationStudyTestInUTC, DaysSinceLocalWindowsEpoch) { … }
class AutofillAblationStudyTestInEST : public AutofillAblationStudyTest { … };
TEST_F(AutofillAblationStudyTestInEST, DaysSinceLocalWindowsEpoch) { … }
TEST_F(AutofillAblationStudyTestInEST, DayInAblationWindow) { … }
TEST_F(AutofillAblationStudyTestInUTC, GetAblationHash_IdenticalInput) { … }
TEST_F(AutofillAblationStudyTestInUTC, GetAblationHash_DependsOnSeed) { … }
TEST_F(AutofillAblationStudyTestInUTC, GetAblationHash_DependsOnOrigin) { … }
TEST_F(AutofillAblationStudyTestInUTC, GetAblationHash_DependsOnDay) { … }
TEST_F(AutofillAblationStudyTestInUTC, FeatureDisabled) { … }
TEST_F(AutofillAblationStudyTestInUTC, InvalidParameters) { … }
TEST_F(AutofillAblationStudyTestInUTC, FormTypesDisabled) { … }
TEST_F(AutofillAblationStudyTestInUTC, IntegrationTest) { … }
TEST_F(AutofillAblationStudyTestInUTC, IntegrationTestForEmptySeed) { … }
TEST_F(AutofillAblationStudyTestInUTC, IntegrationTestForOptimizationGuide) { … }
}