chromium/third_party/zxcvbn-cpp/test/matching_unittest.cc

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

#include "third_party/zxcvbn-cpp/native-src/zxcvbn/matching.hpp"

#include <algorithm>
#include <string>
#include <string_view>
#include <vector>

#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/zxcvbn-cpp/native-src/zxcvbn/adjacency_graphs.hpp"
#include "third_party/zxcvbn-cpp/native-src/zxcvbn/common.hpp"
#include "third_party/zxcvbn-cpp/native-src/zxcvbn/frequency_lists.hpp"

ElementsAre;
IsEmpty;

namespace zxcvbn {

namespace {

struct Variation {};

// takes a pattern and list of prefixes/suffixes
// returns a bunch of variants of that pattern embedded
// with each possible prefix/suffix combination, including no prefix/suffix
// returns a list of triplets [variant, i, j] where [i,j] is the start/end of
// the pattern, inclusive
std::vector<Variation> gen_pws(const std::string& pattern,
                               std::vector<std::string> prefixes,
                               std::vector<std::string> suffixes) {}

struct ExpectedDictionaryMatch {};

bool operator==(const Match& lhs, const ExpectedDictionaryMatch& rhs) {}

struct ExpectedSpatialMatch {};

bool operator==(const Match& lhs, const ExpectedSpatialMatch& rhs) {}

struct ExpectedSequenceMatch {};

bool operator==(const Match& lhs, const ExpectedSequenceMatch& rhs) {}

struct ExpectedRepeatMatch {};

bool operator==(const Match& lhs, const ExpectedRepeatMatch& rhs) {}

struct ExpectedRegexMatch {};

bool operator==(const Match& lhs, const ExpectedRegexMatch& rhs) {}

struct ExpectedDateMatch {};

bool operator==(const Match& lhs, const ExpectedDateMatch& rhs) {}

}  // namespace

TEST(ZxcvbnTest, DictionaryMatching) {}

TEST(ZxcvbnTest, ReverseDictionaryMatching) {}

TEST(ZxcvbnTest, L33tMatching) {}

TEST(ZxcvbnTest, SpatialMatching) {}

TEST(ZxcvbnTest, SequenceMatching) {}

TEST(ZxcvbnTest, RepeatMatching) {}

TEST(ZxcvbnTest, RegexMatching) {}

TEST(ZxcvbnTest, DateMatching) {}

TEST(ZxcvbnTest, Omnimatch) {}

}  // namespace zxcvbn