1/*
2	$Id: PropertyConstructionTest.h 1218 2002-09-28 00:19:49Z shatty $
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
18class PropertyConstructionTest :
19	public PropertyTestcase {
20
21private:
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
29protected:
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
39public:
40	static Test *suite(void);
41	PropertyConstructionTest(std::string name = "");
42	virtual ~PropertyConstructionTest();
43	};
44
45#endif
46