#include "components/offline_items_collection/core/utilities/file_existence_checker.h"
#include <vector>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_simple_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace offline_items_collection {
FileIdPairVector;
FileIdPairSet;
namespace {
FileIdPairSet CheckForMissingFiles(
const scoped_refptr<base::TestSimpleTaskRunner>& task_runner,
FileIdPairVector file_paths) { … }
}
class FileExistenceCheckerTest : public testing::Test { … };
FileExistenceCheckerTest::FileExistenceCheckerTest()
: … { … }
FileExistenceCheckerTest::~FileExistenceCheckerTest() { … }
FileIdPairVector FileExistenceCheckerTest::CreateTestFiles(int64_t count) { … }
TEST_F(FileExistenceCheckerTest, NoFilesMissing) { … }
TEST_F(FileExistenceCheckerTest, MissingFileFound) { … }
}