#include "components/optimization_guide/core/bloom_filter.h"
#include <stdint.h>
#include <string>
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace optimization_guide {
namespace {
int CountBits(const ByteVector& vector) { … }
}
TEST(BloomFilterTest, SingleHash) { … }
TEST(BloomFilterTest, FalsePositivesWithSingleBitFilterCollisions) { … }
TEST(BloomFilterTest, MultiHash) { … }
TEST(BloomFilterTest, EverythingMatches) { … }
#if !BUILDFLAG(IS_IOS) && !(defined(OFFICIAL_BUILD) && defined(NDEBUG))
TEST(BloomFilterTest, ByteVectorTooSmall) { … }
#endif
}