#include "chrome/browser/web_applications/test/test_file_utils.h"
#include <cstdint>
#include <utility>
#include "base/files/file_path.h"
#include "base/memory/scoped_refptr.h"
namespace web_app {
scoped_refptr<TestFileUtils> TestFileUtils::Create(
std::map<base::FilePath, base::FilePath> read_file_rerouting) { … }
TestFileUtils::TestFileUtils(
std::map<base::FilePath, base::FilePath> read_file_rerouting)
: … { … }
TestFileUtils::~TestFileUtils() = default;
void TestFileUtils::SetRemainingDiskSpaceSize(int remaining_disk_space) { … }
void TestFileUtils::SetNextDeleteFileRecursivelyResult(
std::optional<bool> delete_result) { … }
bool TestFileUtils::WriteFile(const base::FilePath& filename,
base::span<const uint8_t> file_data) { … }
bool TestFileUtils::ReadFileToString(const base::FilePath& path,
std::string* contents) { … }
bool TestFileUtils::DeleteFileRecursively(const base::FilePath& path) { … }
TestFileUtils* TestFileUtils::AsTestFileUtils() { … }
}