vfs: check userland buffers before reading them.
[haiku.git] / src / tests / kits / app / bpropertyinfo / PropertyFindMatchTest.h
blob78b72ea13ce9ab7a1bb14f90fa03b8abf5018fd6
1 /*
2 $Id: PropertyFindMatchTest.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 PropertyFindMatchTest_H
11 #define PropertyFindMatchTest_H
14 #include "PropertyTestcase.h"
15 #include <PropertyInfo.h>
18 class PropertyFindMatchTest :
19 public PropertyTestcase {
21 private:
22 void ExecFindMatch(BPropertyInfo *propTest,
23 const char *prop,
24 uint32 comm,
25 uint32 spec,
26 bool wildcardCommand,
27 int32 result);
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 PropertyFindMatchTest(std::string name = "");
42 virtual ~PropertyFindMatchTest();
45 #endif