[Payment Request] Refactor has_enrolled_instrument_browsertest.cc.

Refactored test using ::testing::WithParamInterface to remove duplicate
logic between the two test modes: StrictHasEnrolledAutofillInstrument
and legacy mode. This allowed the NoShow logging histogram check to
be applied to all test scenarios.

A subsequent patch relies on this refactor to add testing of delayed
show to all test scenarios (crbug.com/1028114).

Bug: 1027322
Change-Id: I312fb3db3146e86c3d0baf504d0db91d5ce097e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1933122
Commit-Queue: Danyao Wang <danyao@chromium.org>
Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718683}
1 file changed