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

📄 testrunnerthread.h

📁 c++单元测试框架
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////// Name:        TestRunnerThread.h// Purpose:     Header for class TestRunnerThread// Author:      Baptiste Lepilleur// Modified by: Anthon Pang// Created:     2003.09.11// RCS-ID:// Copyright:   (C) 2003 by Anthon Pang and Baptiste Lepilleur// Licence:     LGPL// Reference:   cppunit/src/qttestrunner/TestRunnerThread.h/////////////////////////////////////////////////////////////////////////////#ifndef TESTRUNNERTHREAD_H#define TESTRUNNERTHREAD_H#ifndef CPPUNIT_TEST_H#include <cppunit/Test.h>#endif#include <wx/event.h>#include <wx/thread.h>class CPPUNIT_NS::TestResult;class TestRunnerModelThreadInterface;class TestRunnerThreadFinishedEvent;/*! \class TestRunnerThread * \brief This class represents the thread used to run TestCase. */class TestRunnerThread : public wxThread,                         public wxEvtHandler{private:    CPPUNIT_NS::Test *m_testToRun;    CPPUNIT_NS::TestResult *m_result;    wxEvtHandler *m_eventTarget;    TestRunnerThreadFinishedEvent *m_finishedEvent;public:    /*! Constructs a TestRunnerThread object.     */    TestRunnerThread( CPPUNIT_NS::Test *testToRun,                      CPPUNIT_NS::TestResult *result,                      wxEvtHandler *eventTarget,                      TestRunnerThreadFinishedEvent *finishedEvent );    /// Destructor.    virtual ~TestRunnerThread();private:    /// Prevents the use of the copy constructor.    TestRunnerThread( const TestRunnerThread &copy );    /// Prevents the use of the copy operator.    void operator =( const TestRunnerThread &copy );    virtual void *Entry();};#endif // TESTRUNNERTHREAD_H

⌨️ 快捷键说明

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