Go to the source code of this file.
◆ TEST() [1/4]
Definition at line 50 of file allocatorstest.cpp.
C-runtime library allocator.
void TestAllocator(Allocator &a)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
◆ TEST() [2/4]
Definition at line 55 of file allocatorstest.cpp.
59 for (
size_t i = 1; i < 1000; i++) {
#define EXPECT_TRUE(condition)
void TestAllocator(Allocator &a)
#define EXPECT_LE(val1, val2)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
◆ TEST() [3/4]
Definition at line 65 of file allocatorstest.cpp.
66 #if RAPIDJSON_64BIT == 1 #define RAPIDJSON_UINT64_C2(high32, low32)
Construct a 64-bit literal by a pair of 32-bit integer.
unsigned __int64 uint64_t
#define RAPIDJSON_ALIGN(x)
Data alignment of the machine.
#define EXPECT_EQ(val1, val2)
◆ TEST() [4/4]
Definition at line 85 of file allocatorstest.cpp.
87 void* p =
a.Malloc(100);
88 void* q =
a.Realloc(p, 100, 200);
92 for (
size_t j = 1; j < 32; j++) {
96 for (
size_t i = 1; i < 1024; i++) {
97 q =
a.Realloc(p, i, i + 1);
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define EXPECT_EQ(val1, val2)
◆ TestAllocator()
template<typename Allocator >
Definition at line 22 of file allocatorstest.cpp.
27 for (
size_t i = 0; i < 100; i++)
28 p[i] = static_cast<uint8_t>(i);
33 for (
size_t i = 0; i < 100; i++)
35 for (
size_t i = 100; i < 200; i++)
36 q[i] = static_cast<uint8_t>(i);
41 for (
size_t i = 0; i < 150; i++)
#define EXPECT_TRUE(condition)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define EXPECT_EQ(val1, val2)