testrunnerthread.h

来自「c++单元测试框架」· C头文件 代码 · 共 61 行

H
61
字号
/////////////////////////////////////////////////////////////////////////////// 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 + =
减小字号Ctrl + -
显示快捷键?