⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 guitestresult.h

📁 C++ class libraries for network-centric, portable applications, integrated perfectly with the C++ St
💻 H
字号:
//// GUITestResult.h//// $Id: //poco/1.2/CppUnit/WinTestRunner/src/GUITestResult.h#1 $//#ifndef GuiTestResult_INCLUDED#define GuiTestResult_INCLUDED#include "CppUnit/CppUnit.h"#include "CppUnit/TestResult.h"#include <afxmt.h>namespace CppUnit {class TestRunnerDlg;class GUITestResult: public TestResult{public:	GUITestResult(TestRunnerDlg* runner);	~GUITestResult();	void addError(Test* test, CppUnitException* e);	void addFailure(Test* test, CppUnitException* e);	void endTest(Test* test);	void stop();protected:	class LightweightSynchronizationObject: public TestResult::SynchronizationObject	{	public:		void lock()		{			_syncObject.Lock();		}				void unlock()		{			_syncObject.Unlock();		}			private:		CCriticalSection _syncObject;	};private:    TestRunnerDlg *_runner;};// Construct with lightweight synchronizationinline GUITestResult::GUITestResult(TestRunnerDlg* runner): _runner(runner) {	setSynchronizationObject(new LightweightSynchronizationObject());}// Destructorinline GUITestResult::~GUITestResult(){}// Override without protection to prevent deadlockinline void GUITestResult::stop(){	_stop = true; }} // namespace CppUnit#endif // GuiTestResult_INCLUDED

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -