xref: /haiku/src/tests/kits/app/bpropertyinfo/PropertyConstructionTest.h (revision 2f470aec1c92ce6917b8a903e343795dc77af41f)
1 /*
2 	$Id: PropertyConstructionTest.h,v 1.3 2002/09/28 00:19:49 shatty Exp $
3 
4 	This file defines a class for performing one test of BPropertyInfo
5 	functionality.
6 
7 	*/
8 
9 
10 #ifndef PropertyConstructionTest_H
11 #define PropertyConstructionTest_H
12 
13 
14 #include "PropertyTestcase.h"
15 #include <PropertyInfo.h>
16 
17 
18 class PropertyConstructionTest :
19 	public PropertyTestcase {
20 
21 private:
22 	void CompareProperties(const property_info *prop1,
23 	                       const property_info *prop2,
24 	                       int prop_count);
25 	void CompareValues(const value_info *value1,
26 	                   const value_info *value2,
27 	                   int value_count);
28 
29 protected:
30 	void TestProperty(BPropertyInfo *propTest,
31 	                  const property_info *prop_list,
32 	                  const value_info *value_list,
33 	                  int32 prop_count,
34 	                  int32 value_count,
35 	                  ssize_t flat_size,
36 	                  const char *lflat_data,
37 	                  const char *bflat_data);
38 
39 public:
40 	static Test *suite(void);
41 	PropertyConstructionTest(std::string name = "");
42 	virtual ~PropertyConstructionTest();
43 	};
44 
45 #endif
46