proxygen
|
#include <folly/memory/MallctlHelper.h>
#include <folly/CPortability.h>
#include <folly/init/Init.h>
#include <folly/memory/Malloc.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Classes | |
class | MallctlHelperTest |
Functions | |
TEST_F (MallctlHelperTest, valid_read) | |
TEST_F (MallctlHelperTest, invalid_read) | |
TEST_F (MallctlHelperTest, valid_write) | |
TEST_F (MallctlHelperTest, invalid_write) | |
TEST_F (MallctlHelperTest, valid_read_write) | |
TEST_F (MallctlHelperTest, invalid_read_write) | |
TEST_F (MallctlHelperTest, valid_call) | |
TEST_F (MallctlHelperTest, invalid_call) | |
int | main (int argc, char **argv) |
Variables | |
static constexpr char const * | kDecayCmd = "arena.0.decay_time" |
const char * | malloc_conf = "purge:decay,decay_time:10" |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 102 of file MallctlHelperTest.cpp.
References folly::init(), testing::InitGoogleTest(), RUN_ALL_TESTS(), and folly::usingJEMalloc().
TEST_F | ( | MallctlHelperTest | , |
valid_read | |||
) |
Definition at line 52 of file MallctlHelperTest.cpp.
References EXPECT_EQ, EXPECT_NO_THROW, kDecayCmd, and folly::mallctlRead().
TEST_F | ( | MallctlHelperTest | , |
invalid_read | |||
) |
Definition at line 58 of file MallctlHelperTest.cpp.
References EXPECT_EQ, EXPECT_THROW, and folly::mallctlRead().
TEST_F | ( | MallctlHelperTest | , |
valid_write | |||
) |
Definition at line 64 of file MallctlHelperTest.cpp.
References EXPECT_EQ, EXPECT_NO_THROW, kDecayCmd, and folly::mallctlWrite().
TEST_F | ( | MallctlHelperTest | , |
invalid_write | |||
) |
Definition at line 70 of file MallctlHelperTest.cpp.
References EXPECT_EQ, EXPECT_THROW, and folly::mallctlWrite().
TEST_F | ( | MallctlHelperTest | , |
valid_read_write | |||
) |
Definition at line 76 of file MallctlHelperTest.cpp.
References EXPECT_EQ, EXPECT_NO_THROW, kDecayCmd, and folly::mallctlReadWrite().
TEST_F | ( | MallctlHelperTest | , |
invalid_read_write | |||
) |
Definition at line 84 of file MallctlHelperTest.cpp.
References EXPECT_EQ, EXPECT_THROW, and folly::mallctlReadWrite().
TEST_F | ( | MallctlHelperTest | , |
valid_call | |||
) |
Definition at line 94 of file MallctlHelperTest.cpp.
References EXPECT_NO_THROW, and folly::mallctlCall().
TEST_F | ( | MallctlHelperTest | , |
invalid_call | |||
) |
Definition at line 98 of file MallctlHelperTest.cpp.
References EXPECT_THROW, and folly::mallctlCall().
|
static |
Definition at line 33 of file MallctlHelperTest.cpp.
Referenced by MallctlHelperTest::readArena0DecayTime(), MallctlHelperTest::TearDown(), and TEST_F().
const char* malloc_conf = "purge:decay,decay_time:10" |
Definition at line 34 of file MallctlHelperTest.cpp.