File: TestRunnerDlgImpl.h

package info (click to toggle)
squid3 3.0.PRE5-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 21,164 kB
  • ctags: 20,388
  • sloc: cpp: 119,851; ansic: 30,259; sh: 10,366; makefile: 3,289; perl: 1,267; awk: 84; xml: 58
file content (58 lines) | stat: -rw-r--r-- 1,254 bytes parent folder | download | duplicates (9)
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
49
50
51
52
53
54
55
56
57
58
#ifndef TESTRUNNERDLG_H
#define TESTRUNNERDLG_H

#include "testrunnerdlg.h"
#include <cppunit/Test.h>
class TestRunnerModel;
class MostRecentTests;
class TestFailureInfo;
class QListViewItem;

class TestRunnerDlg : public TestRunnerDlgBase
{ 
  Q_OBJECT

public:
  TestRunnerDlg( QWidget* parent = 0, 
                 const char* name = 0, 
                 bool modal = FALSE, 
                 WFlags fl = 0 );
  ~TestRunnerDlg();

  void setModel( TestRunnerModel *model,
                 bool autorunTest );

public slots:
  void refreshRecentTests();

protected slots:
  void browseForTest();
  void runTest();
  void stopTest();
  void setNumberOfTestCase( int numberOfTestCase );
  void setNumberOfTestCaseRun( int numberOfRun );
  void setNumberOfTestCaseFailure( int numberOfFailure );
  void clearTestFailureList();
  void clearFailureDetail();
  void reportFailure( TestFailureInfo *failure );
  void showFailureDetailAt( QListViewItem *selection );
  void beCanRunTest();
  void beRunningTest();
  void beStoppingTest();

private:

  enum Columns
  {
    indexType =0,
    indexTestName,
    indexMessage,
    indexFilename,
    indexLineNumber
  };

  TestRunnerModel *_model;
  MostRecentTests *_recentTests;
};

#endif // TESTRUNNERDLG_H