#include "components/image_fetcher/core/cache/image_data_store_disk.h"
#include <memory>
#include <vector>
#include "base/files/scoped_file.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
ScopedTempDir;
Mock;
namespace image_fetcher {
namespace {
constexpr char kImageKey[] = …;
constexpr char kImageData[] = …;
}
class CachedImageFetcherImageDataStoreDiskTest : public testing::Test { … };
TEST_F(CachedImageFetcherImageDataStoreDiskTest, SanityTest) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest, Init) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest, InitWithExistingDirectory) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest, SaveBeforeInit) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest, Save) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest, DeleteBeforeInit) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest, Delete) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest, GetAllKeysBeforeInit) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest, GetAllKeys) { … }
TEST_F(CachedImageFetcherImageDataStoreDiskTest,
QueuedLoadIsServedBeforeDelete) { … }
}