Commit 6b2cecc2 authored by Eugene But's avatar Eugene But Committed by Commit Bot

Disable SupportedNetworksTest.Test on iOS devices.

This test is flaky on iOS devices, but FLAKY_ prefix is no longer used,
so this test is disabled on iOS devices.

Bug: 1008023
Change-Id: I7bb3e2d530d584585f2c89c57a1c8b05067e30b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1825319
Auto-Submit: Eugene But <eugenebut@chromium.org>
Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
Commit-Queue: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700321}
parent 2243ae53
......@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "build/build_config.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/data_model/credit_card.h"
......@@ -128,7 +129,13 @@ INSTANTIATE_TEST_SUITE_P(
// A test fixture to check ParseSupportedMethods() correctly returns the card
// networks for the "basic-card" payment method.
typedef ::testing::TestWithParam<const char*> SupportedNetworksTest;
TEST_P(SupportedNetworksTest, Test) {
#if defined(OS_IOS) && !TARGET_OS_SIMULATOR
// TODO(crbug.com/1008023): Enable this test on iOS devices.
#define MAYBE_SupportedNetworks DISABLED_SupportedNetworks
#else
#define MAYBE_SupportedNetworks SupportedNetworks
#endif // defined(OS_IOS) && !TARGET_OS_SIMULATOR
TEST_P(SupportedNetworksTest, MAYBE_SupportedNetworks) {
PaymentMethodData method_data;
method_data.supported_method = kBasicCardMethodName;
// GetParam() is expected to be a basic-card network.
......
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