wintestrunner.cpp
来自「C++ class libraries for network-centric,」· C++ 代码 · 共 65 行
CPP
65 行
//// WinTestRunner.cpp//// $Id: //poco/1.2/CppUnit/WinTestRunner/src/WinTestRunner.cpp#1 $//#include "WinTestRunner/WinTestRunner.h"#include "TestRunnerDlg.h"namespace CppUnit {WinTestRunner::WinTestRunner(){}WinTestRunner::~WinTestRunner(){ for (std::vector<Test*>::iterator it = _tests.begin(); it != _tests.end(); ++it) delete *it;}void WinTestRunner::run(){ TestRunnerDlg dlg; dlg.setTests(_tests); dlg.DoModal();}void WinTestRunner::addTest(Test* pTest){ _tests.push_back(pTest);}BEGIN_MESSAGE_MAP(WinTestRunnerApp, CWinApp)END_MESSAGE_MAP()BOOL WinTestRunnerApp::InitInstance(){ AllocConsole(); SetConsoleTitle("CppUnit WinTestRunner Console"); freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); freopen("CONIN$", "r", stdin); TestMain(); FreeConsole(); return FALSE;}void WinTestRunnerApp::TestMain(){}} // namespace CppUnit
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?