mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
40da1525c9
Make outputting a string as easy as it should be. Now that our StringOut internally uses OutputDebugStringA instead of DbgPrint, we don't need to output in 512 byte chunks anymore. Additionally, do an explicit flush when using std::cout to not lose debug output. ROSTESTS-158 #resolve #comment Committed in r66855 svn path=/trunk/; revision=66855
76 lines
1.8 KiB
C++
76 lines
1.8 KiB
C++
#ifndef _ROSAUTOTEST_H_
|
|
#define _ROSAUTOTEST_H_
|
|
|
|
/* General includes */
|
|
#include <iostream>
|
|
#include <memory>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <iomanip>
|
|
|
|
using namespace std;
|
|
|
|
#define WIN32_NO_STATUS
|
|
#define _INC_WINDOWS
|
|
#define COM_NO_WINDOWS_H
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
#include <winnls.h>
|
|
#include <reason.h>
|
|
#include <shlobj.h>
|
|
#include <wininet.h>
|
|
#include <winreg.h>
|
|
|
|
#include <ndk/rtlfuncs.h>
|
|
#include <reactos/buildno.h>
|
|
|
|
/* Class includes */
|
|
#include "auto_array_ptr.h"
|
|
#include "CConfiguration.h"
|
|
#include "CFatalException.h"
|
|
#include "CInvalidParameterException.h"
|
|
#include "CPipe.h"
|
|
#include "CProcess.h"
|
|
#include "CPipedProcess.h"
|
|
#include "CSimpleException.h"
|
|
#include "CTestException.h"
|
|
#include "CTestInfo.h"
|
|
#include "CTest.h"
|
|
#include "CTestList.h"
|
|
#include "CJournaledTestList.h"
|
|
#include "CVirtualTestList.h"
|
|
#include "CWebService.h"
|
|
#include "CWineTest.h"
|
|
|
|
#include <rosautotestmsg.h>
|
|
|
|
/* Useful macros */
|
|
#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)
|
|
|
|
/* main.c */
|
|
extern CConfiguration Configuration;
|
|
|
|
/* misc.c */
|
|
VOID FreeLogs(VOID);
|
|
VOID InitLogs(VOID);
|
|
extern HANDLE hLog;
|
|
|
|
/* shutdown.c */
|
|
bool ShutdownSystem();
|
|
|
|
/* tools.c */
|
|
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);
|
|
void StringOut(const string& InputString);
|
|
string UnicodeToAscii(PCWSTR UnicodeString);
|
|
string UnicodeToAscii(const wstring& UnicodeString);
|
|
|
|
#endif /* _ROSAUTOTEST_H_ */
|