File: pltest.h

package info (click to toggle)
paintlib 2.6.2-14
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 7,920 kB
  • ctags: 3,874
  • sloc: cpp: 25,209; sh: 10,605; ansic: 1,891; makefile: 120
file content (51 lines) | stat: -rw-r--r-- 1,058 bytes parent folder | download | duplicates (3)
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
/*
/--------------------------------------------------------------------
|
|      $Id: pltest.h,v 1.1 2002/08/04 20:12:34 uzadow Exp $
|
|      Copyright (c) 1996-2002 Ulrich von Zadow
|
\--------------------------------------------------------------------
*/

#ifndef INCL_PLTEST
#define INCL_PLTEST

class PLTest
{
public:
  PLTest(void);
  virtual ~PLTest(void);

  bool IsOk ();
  virtual void RunTests () = 0;

  void Test (bool b);
  void SetFailed ();

  int GetNumSucceeded () const;
  int GetNumFailed () const;

  void AggregateStatistics (const PLTest& ChildTest);

private:
  bool m_bOk;
  int m_NumSucceeded;
  int m_NumFailed;

};

#endif

/*
/--------------------------------------------------------------------
|
|      $Log: pltest.h,v $
|      Revision 1.1  2002/08/04 20:12:34  uzadow
|      Added PLBmpInfo class, ability to extract metainformation from images without loading the whole image and proper greyscale support.
|      Major improvements in tests.
|
|
|
\--------------------------------------------------------------------
*/