vfs: check userland buffers before reading them.
[haiku.git] / src / tests / kits / app / bpropertyinfo / PropertyConstructionTest.h
blob953450209ab8879b6ac4efccae3385a80d8dd574
1 /*
2 $Id: PropertyConstructionTest.h 1218 2002-09-28 00:19:49Z shatty $
4 This file defines a class for performing one test of BPropertyInfo
5 functionality.
7 */
10 #ifndef PropertyConstructionTest_H
11 #define PropertyConstructionTest_H
14 #include "PropertyTestcase.h"
15 #include <PropertyInfo.h>
18 class PropertyConstructionTest :
19 public PropertyTestcase {
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);
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);
39 public:
40 static Test *suite(void);
41 PropertyConstructionTest(std::string name = "");
42 virtual ~PropertyConstructionTest();
45 #endif