vfs: check userland buffers before reading them.
[haiku.git] / src / tests / kits / app / bmessage / MessageInt8ItemTest.h
blobb80816d7e62846de06a1085152d62b6c5c866287
1 //------------------------------------------------------------------------------
2 // MessageInt8ItemTest.h
3 //
4 //------------------------------------------------------------------------------
6 #ifndef MESSAGEINT8ITEMTEST_H
7 #define MESSAGEINT8ITEMTEST_H
9 // Standard Includes -----------------------------------------------------------
11 // System Includes -------------------------------------------------------------
13 // Project Includes ------------------------------------------------------------
15 // Local Includes --------------------------------------------------------------
16 #include "MessageItemTest.h"
18 // Local Defines ---------------------------------------------------------------
20 // Globals ---------------------------------------------------------------------
22 typedef TMessageItemFuncPolicy
24 int8,
25 &BMessage::AddInt8,
26 &BMessage::FindInt8,
27 &BMessage::FindInt8,
28 &BMessage::FindInt8,
29 &BMessage::HasInt8,
30 &BMessage::ReplaceInt8
32 TInt8FuncPolicy;
34 struct TInt8InitPolicy : public ArrayTypeBase<int8>
36 inline static int8 Zero() { return 0; }
37 inline static int8 Test1() { return 16; }
38 inline static int8 Test2() { return 32; }
39 inline static size_t SizeOf(const int8&) { return sizeof (int8); }
40 inline static ArrayType Array()
42 ArrayType array;
43 array.push_back(64);
44 array.push_back(128);
45 array.push_back(255);
46 return array;
50 typedef TMessageItemAssertPolicy
52 int8
54 TInt8AssertPolicy;
56 typedef TMessageItemTest
58 int8,
59 B_INT8_TYPE,
60 TInt8FuncPolicy,
61 TInt8InitPolicy,
62 TInt8AssertPolicy
64 TMessageInt8ItemTest;
66 #endif // MESSAGEINT8ITEMTEST_H
69 * $Log $
71 * $Id $