#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 { … };
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) { … }
}
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) { … }
}