#include "storage/browser/file_system/file_system_usage_cache.h"
#include <stdint.h>
#include <limits>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace storage {
class FileSystemUsageCacheTest : public testing::Test,
public ::testing::WithParamInterface<bool> { … };
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(FileSystemUsageCacheTest, CreateTest) { … }
TEST_P(FileSystemUsageCacheTest, SetSizeTest) { … }
TEST_P(FileSystemUsageCacheTest, SetLargeSizeTest) { … }
TEST_P(FileSystemUsageCacheTest, IncAndGetSizeTest) { … }
TEST_P(FileSystemUsageCacheTest, DecAndGetSizeTest) { … }
TEST_P(FileSystemUsageCacheTest, IncDecAndGetSizeTest) { … }
TEST_P(FileSystemUsageCacheTest, DecIncAndGetSizeTest) { … }
TEST_P(FileSystemUsageCacheTest, ManyIncsSameDecsAndGetSizeTest) { … }
TEST_P(FileSystemUsageCacheTest, ManyIncsLessDecsAndGetSizeTest) { … }
TEST_P(FileSystemUsageCacheTest, GetSizeWithoutCacheFileTest) { … }
TEST_P(FileSystemUsageCacheTest, IncrementDirtyWithoutCacheFileTest) { … }
TEST_P(FileSystemUsageCacheTest, DecrementDirtyWithoutCacheFileTest) { … }
}