chromium/components/autofill/core/common/autofill_regexes_unittest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/autofill/core/common/autofill_regexes.h"

// Keep these tests in sync with
// components/autofill/core/browser/pattern_provider/default_regex_patterns_unittest.cc
// These tests wil be superceded once the pattern provider launches.

#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();

// Tests for capture groups.
struct CapturePatternTestCase {};

class CaptureTest : public testing::TestWithParam<CapturePatternTestCase> {};

TEST_P(CaptureTest, SampleRegexes) {}

INSTANTIATE_TEST_SUITE_P();

}  // namespace

}  // namespace autofill