Lines Matching refs:symbols

84 void ParseSymbol(const ElfFileSymbol& symbol, std::map<std::string, ElfFileSymbol>* symbols) {  in ParseSymbol()  argument
85 (*symbols)[symbol.name] = symbol; in ParseSymbol()
88 static void CheckGlobalVariableSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckGlobalVariableSymbols() argument
89 auto pos = symbols.find("GlobalVar"); in CheckGlobalVariableSymbols()
90 ASSERT_NE(pos, symbols.end()); in CheckGlobalVariableSymbols()
94 static void CheckFunctionSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckFunctionSymbols() argument
95 auto pos = symbols.find("GlobalFunc"); in CheckFunctionSymbols()
96 ASSERT_NE(pos, symbols.end()); in CheckFunctionSymbols()
101 void CheckElfFileSymbols(const std::map<std::string, ElfFileSymbol>& symbols) { in CheckElfFileSymbols() argument
102 CheckGlobalVariableSymbols(symbols); in CheckElfFileSymbols()
103 CheckFunctionSymbols(symbols); in CheckElfFileSymbols()
107 std::map<std::string, ElfFileSymbol> symbols; in TEST() local
112 elf->ParseSymbols(std::bind(ParseSymbol, std::placeholders::_1, &symbols))); in TEST()
113 CheckElfFileSymbols(symbols); in TEST()
117 std::map<std::string, ElfFileSymbol> symbols; in TEST() local
123 elf->ParseSymbols(std::bind(ParseSymbol, std::placeholders::_1, &symbols))); in TEST()
124 CheckElfFileSymbols(symbols); in TEST()
127 symbols.clear(); in TEST()
132 elf->ParseSymbols(std::bind(ParseSymbol, std::placeholders::_1, &symbols))); in TEST()
133 CheckElfFileSymbols(symbols); in TEST()
138 std::map<std::string, ElfFileSymbol> symbols; in TEST() local
145 std::map<std::string, ElfFileSymbol> symbols; in TEST() local
151 elf->ParseSymbols(std::bind(ParseSymbol, std::placeholders::_1, &symbols))); in TEST()
152 CheckElfFileSymbols(symbols); in TEST()
156 std::map<std::string, ElfFileSymbol> symbols; in TEST() local
161 elf->ParseSymbols(std::bind(ParseSymbol, std::placeholders::_1, &symbols))); in TEST()
162 CheckFunctionSymbols(symbols); in TEST()
187 std::map<std::string, ElfFileSymbol> symbols; in TEST() local
192 elf->ParseSymbols(std::bind(ParseSymbol, std::placeholders::_1, &symbols))); in TEST()
193 ASSERT_NE(symbols.find("@plt"), symbols.end()); in TEST()
198 std::map<std::string, ElfFileSymbol> symbols; in TEST() local
203 elf->ParseSymbols(std::bind(ParseSymbol, std::placeholders::_1, &symbols))); in TEST()