xref: /haiku/src/tests/kits/interface/bpolygon/CreatePolygonTest.h (revision 571d840abfdf03de583b26fefd2066ee75b25cf4)
1f7081347Sjrand /*
2*571d840aSOliver Tappe 	$Id: CreatePolygonTest.h 2067 2002-11-23 04:42:57Z jrand $
3f7081347Sjrand 
4f7081347Sjrand 	This file contains the definition of a class for testing the
5f7081347Sjrand 	creation of BPolygon objects through a few different methods.
6f7081347Sjrand 
7f7081347Sjrand 	*/
8f7081347Sjrand 
9f7081347Sjrand 
10f7081347Sjrand #ifndef CreatePolygonTest_H
11f7081347Sjrand #define CreatePolygonTest_H
12f7081347Sjrand 
13f7081347Sjrand 
14f7081347Sjrand #include "../common.h"
15f7081347Sjrand 
16f7081347Sjrand 
17f7081347Sjrand class BPolygon;
18f7081347Sjrand class BPoint;
19f7081347Sjrand class BRect;
20f7081347Sjrand 
21f7081347Sjrand 
22f7081347Sjrand class CreatePolygonTest :
23f7081347Sjrand 	public TestCase {
24f7081347Sjrand 
25f7081347Sjrand private:
26f7081347Sjrand 	void polygonMatches(BPolygon *, const BPoint *, int numPoints, BRect);
27f7081347Sjrand 
28f7081347Sjrand protected:
29f7081347Sjrand 
30f7081347Sjrand public:
31f7081347Sjrand 	static Test *suite(void);
32f7081347Sjrand 	void PerformTest(void);
33f7081347Sjrand 	CreatePolygonTest(std::string name = "");
34f7081347Sjrand 	virtual ~CreatePolygonTest();
35f7081347Sjrand 	};
36f7081347Sjrand 
37f7081347Sjrand #endif
38f7081347Sjrand 
39f7081347Sjrand 
40f7081347Sjrand 
41f7081347Sjrand 
42