vfs: check userland buffers before reading them.
[haiku.git] / src / tests / kits / app / bmessage / MessageInt64ItemTest.h
blob7c5847000d0ed53f9c58aac3e86164e639b7c6e4
1 //------------------------------------------------------------------------------
2 // MessageInt64ItemTest.h
3 //
4 //------------------------------------------------------------------------------
6 #ifndef MESSAGEINT64ITEMTEST_H
7 #define MESSAGEINT64ITEMTEST_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 int64,
25 &BMessage::AddInt64,
26 &BMessage::FindInt64,
27 &BMessage::FindInt64,
28 &BMessage::FindInt64,
29 &BMessage::HasInt64,
30 &BMessage::ReplaceInt64
32 TInt64FuncPolicy;
34 struct TInt64InitPolicy : public ArrayTypeBase<int64>
36 inline static int64 Zero() { return 0; }
37 inline static int64 Test1() { return 1234; }
38 inline static int64 Test2() { return 5678; }
39 inline static size_t SizeOf(const int64&) { return sizeof (int64); }
40 inline static ArrayType Array()
42 ArrayType array;
43 array.push_back(123);
44 array.push_back(456);
45 array.push_back(789);
46 return array;
50 typedef TMessageItemAssertPolicy
52 int64
54 TInt64AssertPolicy;
56 typedef TMessageItemTest
58 int64,
59 B_INT64_TYPE,
60 TInt64FuncPolicy,
61 TInt64InitPolicy,
62 TInt64AssertPolicy
64 TMessageInt64ItemTest;
66 #endif // MESSAGEINT64ITEMTEST_H
69 * $Log $
71 * $Id $