#include "testing/utils/file_util.h"
#include <stdio.h>
#include <utility>
#include <vector>
#include "core/fxcrt/numerics/safe_conversions.h"
#include "core/fxcrt/span.h"
#include "core/fxcrt/stl_util.h"
#include "testing/utils/path_service.h"
std::vector<uint8_t> GetFileContents(const char* filename) { … }
FileAccessForTesting::FileAccessForTesting(const std::string& file_name) { … }
int FileAccessForTesting::GetBlockImpl(unsigned long pos,
unsigned char* pBuf,
unsigned long size) { … }
int FileAccessForTesting::SGetBlock(void* param,
unsigned long pos,
unsigned char* pBuf,
unsigned long size) { … }