#include <algorithm>
#include <optional>
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/test_simple_task_runner.h"
#include "base/uuid.h"
#include "components/download/internal/background_service/driver_entry.h"
#include "components/download/internal/background_service/entry.h"
#include "components/download/internal/background_service/file_monitor_impl.h"
#include "components/download/internal/background_service/test/entry_utils.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
_;
namespace download {
class FileMonitorTest : public testing::Test { … };
base::FilePath FileMonitorTest::CreateTemporaryFile(std::string file_name) { … }
void FileMonitorTest::HardRecoveryResponse(bool result) { … }
TEST_F(FileMonitorTest, TestDeleteUnknownFiles) { … }
TEST_F(FileMonitorTest, TestCleanupFilesForCompletedEntries) { … }
TEST_F(FileMonitorTest, TestHardRecovery) { … }
}