// Copyright (c) 2013 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 "gtest/gtest.h" #include "db/db_impl.h" #include "leveldb/cache.h" #include "leveldb/db.h" #include "util/testutil.h" namespace leveldb { class AutoCompactTest : public testing::Test { … }; static const int kValueSize = …; static const int kTotalSize = …; static const int kCount = …; // Read through the first n keys repeatedly and check that they get // compacted (verified by checking the size of the key space). void AutoCompactTest::DoReads(int n) { … } TEST_F(AutoCompactTest, ReadAll) { … } TEST_F(AutoCompactTest, ReadHalf) { … } } // namespace leveldb