Initial merge of (incomplete) Banana Pi updates (#993)

This commit is contained in:
akuker
2022-12-02 22:20:27 -06:00
committed by GitHub
parent a403ec3ded
commit eb71c31cf1
78 changed files with 8367 additions and 2881 deletions

View File

@@ -22,6 +22,8 @@ using namespace rascsi_interface;
class PrimaryDevice;
class MockAbstractController;
extern const path test_data_temp_path;
shared_ptr<PrimaryDevice> CreateDevice(PbDeviceType, MockAbstractController&, const string& = "");
void TestInquiry(PbDeviceType, scsi_defs::device_type, scsi_defs::scsi_level, const string&,
@@ -30,5 +32,13 @@ void TestInquiry(PbDeviceType, scsi_defs::device_type, scsi_defs::scsi_level, co
pair<int, path> OpenTempFile();
path CreateTempFile(int);
// create a file with the specified data
void CreateTempFileWithData(string filename, vector<uint8_t> &data);
void DeleteTempFile(string filename);
// Call this at the end of every test case to make sure things are cleaned up
void CleanupAllTempFiles();
int GetInt16(const vector<byte>&, int);
uint32_t GetInt32(const vector<byte>&, int);