2014-02-10 17:05:15 +00:00
|
|
|
#ifndef _ROSAUTOTEST_H_
|
|
|
|
#define _ROSAUTOTEST_H_
|
|
|
|
|
2009-03-21 01:39:04 +00:00
|
|
|
/* General includes */
|
|
|
|
#include <iostream>
|
|
|
|
#include <memory>
|
|
|
|
#include <sstream>
|
2013-06-22 16:38:27 +00:00
|
|
|
#include <string>
|
2009-03-21 01:39:04 +00:00
|
|
|
#include <vector>
|
2012-02-05 20:56:21 +00:00
|
|
|
#include <iomanip>
|
2009-01-05 12:41:34 +00:00
|
|
|
|
2009-03-21 01:39:04 +00:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
2013-02-05 17:54:22 +00:00
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <winnls.h>
|
2009-01-05 12:41:34 +00:00
|
|
|
#include <reason.h>
|
2009-03-21 01:39:04 +00:00
|
|
|
#include <shlobj.h>
|
2009-01-05 12:41:34 +00:00
|
|
|
#include <wininet.h>
|
2014-08-27 20:19:43 +00:00
|
|
|
#include <winreg.h>
|
2009-01-05 12:41:34 +00:00
|
|
|
|
2009-03-21 01:39:04 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
2009-01-05 12:41:34 +00:00
|
|
|
#include <reactos/buildno.h>
|
|
|
|
|
2009-03-21 01:39:04 +00:00
|
|
|
/* Class includes */
|
|
|
|
#include "auto_array_ptr.h"
|
|
|
|
#include "CConfiguration.h"
|
|
|
|
#include "CFatalException.h"
|
|
|
|
#include "CInvalidParameterException.h"
|
2015-02-16 13:17:04 +00:00
|
|
|
#include "CPipe.h"
|
2009-03-21 01:39:04 +00:00
|
|
|
#include "CProcess.h"
|
2015-02-16 13:17:04 +00:00
|
|
|
#include "CPipedProcess.h"
|
2009-03-21 01:39:04 +00:00
|
|
|
#include "CSimpleException.h"
|
2015-02-28 21:12:25 +00:00
|
|
|
#include "CTestException.h"
|
2009-03-21 01:39:04 +00:00
|
|
|
#include "CTestInfo.h"
|
|
|
|
#include "CTest.h"
|
|
|
|
#include "CTestList.h"
|
|
|
|
#include "CJournaledTestList.h"
|
|
|
|
#include "CVirtualTestList.h"
|
|
|
|
#include "CWebService.h"
|
|
|
|
#include "CWineTest.h"
|
|
|
|
|
2014-08-27 20:19:43 +00:00
|
|
|
#include <rosautotestmsg.h>
|
|
|
|
|
2009-03-21 01:39:04 +00:00
|
|
|
/* Useful macros */
|
2015-02-28 21:12:25 +00:00
|
|
|
#define EXCEPTION(Message) throw CSimpleException(Message)
|
|
|
|
#define FATAL(Message) throw CFatalException(__FILE__, __LINE__, Message)
|
|
|
|
#define SSEXCEPTION throw CSimpleException(ss.str())
|
|
|
|
#define TESTEXCEPTION(Message) throw CTestException(Message)
|
2009-01-05 12:41:34 +00:00
|
|
|
|
|
|
|
/* main.c */
|
2009-03-21 01:39:04 +00:00
|
|
|
extern CConfiguration Configuration;
|
2009-01-05 12:41:34 +00:00
|
|
|
|
2014-08-27 20:19:43 +00:00
|
|
|
/* misc.c */
|
|
|
|
VOID FreeLogs(VOID);
|
|
|
|
VOID InitLogs(VOID);
|
|
|
|
extern HANDLE hLog;
|
|
|
|
|
2009-01-05 12:41:34 +00:00
|
|
|
/* shutdown.c */
|
2009-03-21 01:39:04 +00:00
|
|
|
bool ShutdownSystem();
|
2009-01-05 12:41:34 +00:00
|
|
|
|
|
|
|
/* tools.c */
|
2009-03-21 01:39:04 +00:00
|
|
|
wstring AsciiToUnicode(const char* AsciiString);
|
|
|
|
wstring AsciiToUnicode(const string& AsciiString);
|
|
|
|
string EscapeString(const char* Input);
|
|
|
|
string EscapeString(const string& Input);
|
|
|
|
string GetINIValue(PCWCH AppName, PCWCH KeyName, PCWCH FileName);
|
|
|
|
bool IsNumber(const char* Input);
|
2012-08-14 20:25:58 +00:00
|
|
|
string StringOut(const string& String, bool forcePrint = true);
|
2009-03-21 01:39:04 +00:00
|
|
|
string UnicodeToAscii(PCWSTR UnicodeString);
|
|
|
|
string UnicodeToAscii(const wstring& UnicodeString);
|
2014-02-10 17:05:15 +00:00
|
|
|
|
|
|
|
#endif /* _ROSAUTOTEST_H_ */
|