#include <stdio.h>
#include <map>
#include "base/files/file_enumerator.h"
#include "base/files/file_util.h"
#include "base/files/safe_base_name.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/threading/platform_thread.h"
#include "build/chromeos_buildflags.h"
#include "net/disk_cache/cache_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
namespace disk_cache {
class CacheUtilTest : public PlatformTest { … };
TEST_F(CacheUtilTest, MoveCache) { … }
TEST_F(CacheUtilTest, DeleteCache) { … }
TEST_F(CacheUtilTest, DeleteCacheAndDir) { … }
TEST_F(CacheUtilTest, CleanupDirectory) { … }
#if BUILDFLAG(IS_POSIX)
TEST_F(CacheUtilTest, CleanupDirectoryFailsWhenParentDirectoryIsInaccessible) { … }
TEST_F(CacheUtilTest,
CleanupDirectorySucceedsWhenTargetDirectoryIsInaccessible) { … }
#endif
TEST_F(CacheUtilTest, PreferredCacheSize) { … }
}