Go to the source code of this file.
◆ TEST() [1/4]
Definition at line 65 of file allocatorstest.cpp.
65 {
66 if (sizeof(size_t) >= 8) {
73 }
74 }
75
80 }
81}
#define RAPIDJSON_ALIGN(x)
Data alignment of the machine.
#define EXPECT_EQ(val1, val2)
#define RAPIDJSON_UINT64_C2(high32, low32)
Construct a 64-bit literal by a pair of 32-bit integer.
unsigned __int64 uint64_t
◆ TEST() [2/4]
Definition at line 50 of file allocatorstest.cpp.
50 {
53}
void TestAllocator(Allocator &a)
C-runtime library allocator.
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
◆ TEST() [3/4]
Definition at line 83 of file allocatorstest.cpp.
83 {
85 void*
p =
a.Malloc(100);
86 void* q =
a.Realloc(
p, 100, 200);
88
89
90 for (
size_t j = 1;
j < 32;
j++) {
94 for (size_t i = 1; i < 1024; i++) {
95 q =
a.Realloc(
p, i, i + 1);
98 }
99 }
100}
Default memory allocator used by the parser and DOM.
◆ TEST() [4/4]
Definition at line 55 of file allocatorstest.cpp.
55 {
58
59 for (size_t i = 1; i < 1000; i++) {
62 }
63}
#define EXPECT_TRUE(condition)
#define EXPECT_LE(val1, val2)
◆ TestAllocator()
Definition at line 22 of file allocatorstest.cpp.
22 {
24
27 for (size_t i = 0; i < 100; i++)
29
30
33 for (size_t i = 0; i < 100; i++)
35 for (size_t i = 100; i < 200; i++)
37
38
41 for (size_t i = 0; i < 150; i++)
43
45
46
48}