reactos/rosautotest/CJournaledTestList.h
2011-05-06 13:25:33 +00:00

30 lines
966 B
C++

/*
* PROJECT: ReactOS Automatic Testing Utility
* LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
* PURPOSE: Class implementing a journaled test list for the Crash Recovery feature
* COPYRIGHT: Copyright 2009 Colin Finck <colin@reactos.org>
*/
class CJournaledTestList : public CTestList
{
private:
HANDLE m_hJournal;
size_t m_ListIterator;
vector<CTestInfo> m_List;
wstring m_JournalFile;
void LoadJournalFile();
void OpenJournal(DWORD DesiredAccess, bool CreateNew = false);
void SerializeIntoJournal(const string& String);
void SerializeIntoJournal(const wstring& String);
void UnserializeFromBuffer(char** Buffer, string& Output);
void UnserializeFromBuffer(char** Buffer, wstring& Output);
void UpdateJournal();
void WriteInitialJournalFile();
public:
CJournaledTestList(CTest* Test);
~CJournaledTestList();
CTestInfo* GetNextTestInfo();
};