|
proxygen
|
#include <folly/FileUtil.h>#include <folly/experimental/TestUtil.h>#include <folly/experimental/symbolizer/Elf.h>#include <folly/portability/GTest.h>Go to the source code of this file.
Classes | |
| class | ElfTest |
Functions | |
| TEST_F (ElfTest, IntegerValue) | |
| TEST_F (ElfTest, PointerValue) | |
| TEST_F (ElfTest, iterateProgramHeaders) | |
| TEST_F (ElfTest, TinyNonElfFile) | |
| TEST_F (ElfTest, NonElfScript) | |
Variables | |
| uint64_t | kIntegerValue = 1234567890UL |
| const char * | kStringValue = "coconuts" |
| TEST_F | ( | ElfTest | , |
| IntegerValue | |||
| ) |
Definition at line 34 of file ElfTests.cpp.
References ElfTest::elfFile_, EXPECT_EQ, EXPECT_NE, folly::symbolizer::ElfFile::getSymbolByName(), folly::symbolizer::ElfFile::getSymbolValue(), kIntegerValue, and uint64_t.
| TEST_F | ( | ElfTest | , |
| PointerValue | |||
| ) |
Definition at line 40 of file ElfTests.cpp.
References addr, ElfTest::elfFile_, EXPECT_NE, EXPECT_STREQ, folly::symbolizer::ElfFile::getAddressValue(), folly::symbolizer::ElfFile::getSymbolByName(), folly::symbolizer::ElfFile::getSymbolValue(), and kStringValue.
| TEST_F | ( | ElfTest | , |
| iterateProgramHeaders | |||
| ) |
Definition at line 48 of file ElfTests.cpp.
References ElfTest::elfFile_, EXPECT_GE, EXPECT_NE, h, and folly::symbolizer::ElfFile::iterateProgramHeaders().
| TEST_F | ( | ElfTest | , |
| TinyNonElfFile | |||
| ) |
Definition at line 55 of file ElfTests.cpp.
References folly::Range< Iter >::data(), EXPECT_EQ, EXPECT_STREQ, folly::test::TemporaryFile::fd(), folly::symbolizer::ElfFile::openNoThrow(), folly::test::TemporaryFile::path(), folly::Range< Iter >::size(), and folly::writeFull().
| TEST_F | ( | ElfTest | , |
| NonElfScript | |||
| ) |
Definition at line 67 of file ElfTests.cpp.
References folly::Range< Iter >::data(), EXPECT_EQ, EXPECT_STREQ, folly::test::TemporaryFile::fd(), folly::symbolizer::ElfFile::openNoThrow(), folly::test::TemporaryFile::path(), folly::Range< Iter >::size(), and folly::writeFull().
| uint64_t kIntegerValue = 1234567890UL |
Definition at line 26 of file ElfTests.cpp.
Referenced by TEST_F().
| const char* kStringValue = "coconuts" |
Definition at line 27 of file ElfTests.cpp.
Referenced by TEST_F().