mirror of
https://github.com/reactos/reactos.git
synced 2024-08-26 05:08:39 +00:00
31 lines
966 B
C
31 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();
|
||
|
};
|