proxygen
|
#include <folly/memory/Arena.h>
#include <folly/Memory.h>
#include <folly/portability/GTest.h>
#include <set>
#include <vector>
#include <glog/logging.h>
Go to the source code of this file.
Functions | |
TEST (Arena, SizeSanity) | |
TEST (Arena, BytesUsedSanity) | |
TEST (Arena, Vector) | |
TEST (Arena, SizeLimit) | |
int | main (int argc, char *argv[]) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 160 of file ArenaTest.cpp.
References testing::InitGoogleTest(), and RUN_ALL_TESTS().
TEST | ( | Arena | , |
SizeSanity | |||
) |
Definition at line 30 of file ArenaTest.cpp.
References folly::Arena< Alloc >::allocate(), folly::Arena< Alloc >::deallocate(), EXPECT_EQ, EXPECT_TRUE, folly::goodMallocSize(), i, folly::Arena< SysAllocator< void > >::kBlockOverhead, ptr, and folly::Arena< Alloc >::totalSize().
TEST | ( | Arena | , |
BytesUsedSanity | |||
) |
Definition at line 91 of file ArenaTest.cpp.
References folly::Arena< Alloc >::allocate(), folly::Arena< Alloc >::bytesUsed(), EXPECT_EQ, EXPECT_TRUE, folly::goodMallocSize(), and folly::Arena< Alloc >::totalSize().
TEST | ( | Arena | , |
Vector | |||
) |
Definition at line 131 of file ArenaTest.cpp.
References EXPECT_EQ, i, and folly::Arena< Alloc >::totalSize().
TEST | ( | Arena | , |
SizeLimit | |||
) |
Definition at line 149 of file ArenaTest.cpp.
References a, folly::Arena< Alloc >::allocate(), EXPECT_THROW, and EXPECT_TRUE.