Commit b38c866b authored by Eugene But's avatar Eugene But Committed by Commit Bot

[ios] Disable AutofillMetricsTest.FrameHasNoForm on iOS 12 device

Test is consistently failing on downstream bots (iPhone and iPad device)

Bug: 1127005
TBR: kazinova@chromium.org
Change-Id: I317f1df8363dfe5139810d8082209e0e9434e57b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404404Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#805870}
parent da055314
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "base/base64.h" #include "base/base64.h"
#include "base/feature_list.h" #include "base/feature_list.h"
#include "base/ios/ios_util.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/metrics/metrics_hashes.h" #include "base/metrics/metrics_hashes.h"
#include "base/metrics/statistics_recorder.h" #include "base/metrics/statistics_recorder.h"
...@@ -10421,6 +10422,13 @@ TEST_F(AutofillMetricsTest, ...@@ -10421,6 +10422,13 @@ TEST_F(AutofillMetricsTest,
// Verify that we don't log Autofill.WebOTP.OneTimeCode.FromAutocomplete if the // Verify that we don't log Autofill.WebOTP.OneTimeCode.FromAutocomplete if the
// frame has no form. // frame has no form.
TEST_F(AutofillMetricsTest, FrameHasNoForm) { TEST_F(AutofillMetricsTest, FrameHasNoForm) {
#if defined(OS_IOS) && !TARGET_IPHONE_SIMULATOR
// TODO(crbug.com/1127005): Test is failing on iOS 12 device.
if (!base::ios::IsRunningOnOrLater(13, 0, 0)) {
return;
}
#endif
autofill_manager_.reset(); autofill_manager_.reset();
EXPECT_FALSE(base::StatisticsRecorder::FindHistogram( EXPECT_FALSE(base::StatisticsRecorder::FindHistogram(
"Autofill.WebOTP.OneTimeCode.FromAutocomplete")); "Autofill.WebOTP.OneTimeCode.FromAutocomplete"));
......
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