chromium/components/optimization_guide/core/bloom_filter_unittest.cc

// Copyright 2018 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/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) {}

}  // namespace

TEST(BloomFilterTest, SingleHash) {}

TEST(BloomFilterTest, FalsePositivesWithSingleBitFilterCollisions) {}

TEST(BloomFilterTest, MultiHash) {}

TEST(BloomFilterTest, EverythingMatches) {}

// Disable this test in configurations that don't print CHECK failures.
#if !BUILDFLAG(IS_IOS) && !(defined(OFFICIAL_BUILD) && defined(NDEBUG))
TEST(BloomFilterTest, ByteVectorTooSmall) {}
#endif

}  // namespace optimization_guide