2 $Id: PropertyTestcase.h 1218 2002-09-28 00:19:49Z shatty $
4 This file defines a base class for performing all tests of BPropertyInfo
10 #ifndef PropertyTestcase_H
11 #define PropertyTestcase_H
14 #include "../common.h"
15 #include <PropertyInfo.h>
18 class PropertyTestcase
:
22 property_info
*DuplicateProperties(const property_info
*prop1
, int prop_count
);
23 value_info
*DuplicateValues(const value_info
*value1
, int value_count
);
26 virtual void TestProperty(BPropertyInfo
*propTest
,
27 const property_info
*prop_list
,
28 const value_info
*value_list
,
32 const char *lflat_data
,
33 const char *bflat_data
) = 0;
35 static const char *uniquePropName
;
36 static const uint32 uniqueCommand
;
37 static const uint32 uniqueSpecifier
;
38 static const char *commonPropName
;
39 static const uint32 commonCommand
;
40 static const uint32 commonSpecifier
;
41 static const uint32 wildcardCommandTests
[];
42 static const uint32 wildcardSpecifierTests
[];
45 void PerformTest(void);
46 PropertyTestcase(std::string name
= "");
47 virtual ~PropertyTestcase();