#include "components/autofill/core/common/autofill_regexes.h"
#include <stddef.h>
#include <string>
#include <string_view>
#include "base/strings/utf_string_conversions.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
namespace {
bool MatchesRegex(std::u16string_view input,
std::u16string_view regex,
std::vector<std::u16string>* groups = nullptr) { … }
struct InputPatternTestCase { … };
class PositiveSampleTest : public testing::TestWithParam<InputPatternTestCase> { … };
TEST_P(PositiveSampleTest, SampleRegexes) { … }
INSTANTIATE_TEST_SUITE_P(…);
class NegativeSampleTest : public testing::TestWithParam<InputPatternTestCase> { … };
TEST_P(NegativeSampleTest, SampleRegexes) { … }
INSTANTIATE_TEST_SUITE_P(…);
struct CapturePatternTestCase { … };
class CaptureTest : public testing::TestWithParam<CapturePatternTestCase> { … };
TEST_P(CaptureTest, SampleRegexes) { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}