summaryrefslogtreecommitdiff
path: root/src/qttestrunner/TestRunnerFailureEvent.h
blob: fa6fef058289aa1338376774761990256c624014 (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
44
45
46
47
48
// //////////////////////////////////////////////////////////////////////////
// Header file TestRunnerFailureEvent.h for class TestRunnerFailureEvent
// (c)Copyright 2000, Baptiste Lepilleur.
// Created: 2001/09/22
// //////////////////////////////////////////////////////////////////////////
#ifndef TESTRUNNERFAILUREEVENT_H
#define TESTRUNNERFAILUREEVENT_H

#include "TestRunnerThreadEvent.h"
class TestFailureInfo;


/*! \class TestRunnerFailureEvent
 * \brief This class represents a new TestCase failure event.
 */
class TestRunnerFailureEvent : public TestRunnerThreadEvent
{
public:
  /*! Constructs a TestRunnerFailureEvent object.
   */
  TestRunnerFailureEvent( TestFailureInfo *failure,
                          int numberOfFailure );

  /// Destructor.
  virtual ~TestRunnerFailureEvent();

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

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

  void process( TestRunnerModelThreadInterface *target );

private:
  TestFailureInfo *_failure;
  int _numberOfFailure;
};



// Inlines methods for TestRunnerFailureEvent:
// -------------------------------------------



#endif  // TESTRUNNERFAILUREEVENT_H