// Copyright (c) 2012 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "table/filter_block.h" #include "gtest/gtest.h" #include "leveldb/filter_policy.h" #include "util/coding.h" #include "util/hash.h" #include "util/logging.h" #include "util/testutil.h" namespace leveldb { // For testing: emit an array with one hash value per key class TestHashFilter : public FilterPolicy { … }; class FilterBlockTest : public testing::Test { … }; TEST_F(FilterBlockTest, EmptyBuilder) { … } TEST_F(FilterBlockTest, SingleChunk) { … } TEST_F(FilterBlockTest, MultiChunk) { … } } // namespace leveldb