Commit dc44b72a authored by Roger McFarlane's avatar Roger McFarlane Committed by Commit Bot

[autofill] isolate 1 test from fieldtrial configs

This CL updates the AutofillMetricsTest.AutofillFormSubmittedState
to explicitly configure all of the relevant feature flags for its
test scenarios, instead of depending on the default state of some
feature flags.

Bug: 824834
Change-Id: I28c9506fce90fc796c6db0c889d7e3f860561971
Reviewed-on: https://chromium-review.googlesource.com/c/1320217Reviewed-by: default avatarTommy Martino <tmartino@chromium.org>
Commit-Queue: Roger McFarlane <rogerm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605777}
parent 40f1c350
......@@ -6317,8 +6317,12 @@ TEST_F(AutofillMetricsTest, AutofillFormSubmittedState) {
// of fields enforced.)
{
base::test::ScopedFeatureList features;
features.InitAndEnableFeature(
kAutofillEnforceMinRequiredFieldsForHeuristics);
features.InitWithFeatures(
// Enabled
{kAutofillEnforceMinRequiredFieldsForHeuristics,
kAutofillEnforceMinRequiredFieldsForQuery},
// Disabled
{});
base::HistogramTester histogram_tester;
base::UserActionTester user_action_tester;
autofill_manager_->OnFormSubmitted(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment