#include "components/url_pattern_index/closed_hash_map.h"
#include <string>
#include <vector>
#include "base/strings/string_number_conversions.h"
#include "components/url_pattern_index/uint64_hasher.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace url_pattern_index {
namespace {
template <typename MapType>
void ExpectHashMapIntegrity(const MapType& map, uint32_t min_capacity = 0) { … }
template <typename MapType>
void ExpectEmptyMap(const MapType& map, uint32_t min_capacity) { … }
}
TEST(ClosedHashMapTest, EmptyMapDefault) { … }
TEST(ClosedHashMapTest, EmptyMapWithCapacity) { … }
TEST(ClosedHashMapTest, InsertDistinctAndGet) { … }
TEST(ClosedHashMapTest, InsertExistingAndGet) { … }
TEST(ClosedHashMapTest, InsertManyKeysWithCustomHasher) { … }
TEST(ClosedHashMapTest, OperatorBrackets) { … }
TEST(ClosedHashMapTest, ManualRehash) { … }
}