summaryrefslogtreecommitdiff
path: root/src/qttestrunner/TestFailureInfo.h
blob: 64a2ceb5e1083d6f08588fac46db32073fbb7ee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// //////////////////////////////////////////////////////////////////////////
// Header file TestFailureInfo.h for class TestFailureInfo
// (c)Copyright 2000, Baptiste Lepilleur.
// Created: 2001/09/20
// //////////////////////////////////////////////////////////////////////////
#ifndef TESTFAILUREINFO_H
#define TESTFAILUREINFO_H

#include <cppunit/TestFailure.h>


/*! \class TestFailureInfo
 * \brief This class represents a test failure.
 */
class TestFailureInfo : public CPPUNIT_NS::TestFailure
{
public:
  /*! Constructs a TestFailureInfo object.
   */
  TestFailureInfo( CPPUNIT_NS::Test *failedTest, 
                   CPPUNIT_NS::Exception *thrownException,
                   bool isError );

  /*! Destructor.
   */
  virtual ~TestFailureInfo();

private:
  /// Prevents the use of the copy constructor.
  TestFailureInfo( const TestFailureInfo &copy );

  /// Prevents the use of the copy operator.
  void operator =( const TestFailureInfo &copy );
};



// Inlines methods for TestFailureInfo:
// ------------------------------------



#endif  // TESTFAILUREINFO_H