chromium/third_party/leveldatabase/src/util/cache_test.cc

// 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 "leveldb/cache.h"

#include <vector>

#include "gtest/gtest.h"
#include "util/coding.h"

namespace leveldb {

// Conversions between numeric keys/values and the types expected by Cache.
static std::string EncodeKey(int k) {}
static int DecodeKey(const Slice& k) {}
static void* EncodeValue(uintptr_t v) {}
static int DecodeValue(void* v) {}

class CacheTest : public testing::Test {};
CacheTest* CacheTest::current_;

TEST_F(CacheTest, HitAndMiss) {}

TEST_F(CacheTest, Erase) {}

TEST_F(CacheTest, EntriesArePinned) {}

TEST_F(CacheTest, EvictionPolicy) {}

TEST_F(CacheTest, UseExceedsCacheSize) {}

TEST_F(CacheTest, HeavyEntries) {}

TEST_F(CacheTest, NewId) {}

TEST_F(CacheTest, Prune) {}

TEST_F(CacheTest, ZeroSizeCache) {}

}  // namespace leveldb