Lines Matching refs:m_pInput
28 : m_pInput(NULL) in ELFReaderTest()
64 m_pInput = m_pIRBuilder->ReadInput("test_x86_64", path); in SetUp()
65 ASSERT_TRUE(NULL!=m_pInput); in SetUp()
67 ASSERT_TRUE(m_pInput->hasMemArea()); in SetUp()
69 MemoryRegion* region = m_pInput->memArea()->request(m_pInput->fileOffset(), in SetUp()
72 bool shdr_result = m_pELFReader->readSectionHeaders(*m_pInput, ELF_hdr); in SetUp()
73 m_pInput->memArea()->release(region); in SetUp()
86 ASSERT_EQ(m_pInput->context()->numOfSections(), 13); in TEST_F()
87 LDContext::const_sect_iterator iter = m_pInput->context()->sectBegin(); in TEST_F()
101 ASSERT_TRUE(m_pInput->hasMemArea()); in TEST_F()
102 ASSERT_TRUE(m_pInput->hasContext()); in TEST_F()
103 m_pInput->setType(Input::Object); in TEST_F()
106 LDSection* symtab_shdr = m_pInput->context()->getSection(".symtab"); in TEST_F()
112 MemoryRegion* symtab_region = m_pInput->memArea()->request( in TEST_F()
113 m_pInput->fileOffset() + symtab_shdr->offset(), in TEST_F()
116 MemoryRegion* strtab_region = m_pInput->memArea()->request( in TEST_F()
117 m_pInput->fileOffset() + strtab_shdr->offset(), in TEST_F()
120 bool result = m_pELFReader->readSymbols(*m_pInput, *m_pIRBuilder, in TEST_F()
123 ASSERT_EQ("hello.c", std::string(m_pInput->context()->getSymbol(1)->name())); in TEST_F()
124 ASSERT_EQ("puts", std::string(m_pInput->context()->getSymbol(10)->name())); in TEST_F()
125 ASSERT_TRUE(NULL==m_pInput->context()->getSymbol(11)); in TEST_F()
126 m_pInput->memArea()->release(symtab_region); in TEST_F()
127 m_pInput->memArea()->release(strtab_region); in TEST_F()
130 MemoryArea* mem = m_pInput->memArea(); in TEST_F()
131 LDContext::sect_iterator rs = m_pInput->context()->relocSectBegin(); in TEST_F()
132 ASSERT_TRUE(rs!=m_pInput->context()->relocSectEnd()); in TEST_F()
135 uint64_t offset = m_pInput->fileOffset() + (*rs)->offset(); in TEST_F()
141 ASSERT_TRUE(m_pELFReader->readRela(*m_pInput, **rs, *region)); in TEST_F()
157 ASSERT_TRUE( m_pELFObjReader->readSections(*m_pInput) ); in TEST_F()
161 ASSERT_TRUE( m_pELFObjReader->isMyFormat(*m_pInput) ); in TEST_F()