// Copyright (c) 2011 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/memtable.h" #include "db/write_batch_internal.h" #include "leveldb/db.h" #include "leveldb/env.h" #include "util/logging.h" namespace leveldb { static std::string PrintContents(WriteBatch* b) { … } TEST(WriteBatchTest, Empty) { … } TEST(WriteBatchTest, Multiple) { … } TEST(WriteBatchTest, Corruption) { … } TEST(WriteBatchTest, Append) { … } TEST(WriteBatchTest, ApproximateSize) { … } } // namespace leveldb