Lines Matching refs:Stub
46 std::unique_ptr<ELFStub> Stub = std::move(StubOrErr.get()); in TEST() local
47 EXPECT_NE(Stub.get(), nullptr); in TEST()
48 EXPECT_FALSE(Stub->SoName.hasValue()); in TEST()
49 EXPECT_EQ(Stub->Arch, (uint16_t)llvm::ELF::EM_X86_64); in TEST()
50 EXPECT_EQ(Stub->NeededLibs.size(), 3u); in TEST()
51 EXPECT_STREQ(Stub->NeededLibs[0].c_str(), "libc.so"); in TEST()
52 EXPECT_STREQ(Stub->NeededLibs[1].c_str(), "libfoo.so"); in TEST()
53 EXPECT_STREQ(Stub->NeededLibs[2].c_str(), "libbar.so"); in TEST()
71 std::unique_ptr<ELFStub> Stub = std::move(StubOrErr.get()); in TEST() local
72 EXPECT_NE(Stub.get(), nullptr); in TEST()
73 EXPECT_TRUE(Stub->SoName.hasValue()); in TEST()
74 EXPECT_STREQ(Stub->SoName->c_str(), "test.so"); in TEST()
75 EXPECT_EQ(Stub->Symbols.size(), 5u); in TEST()
77 auto Iterator = Stub->Symbols.begin(); in TEST()
130 std::unique_ptr<ELFStub> Stub = std::move(StubOrErr.get()); in TEST() local
131 EXPECT_NE(Stub.get(), nullptr); in TEST()
132 EXPECT_EQ(0u, Stub->Symbols.size()); in TEST()
170 ELFStub Stub; in TEST() local
171 Stub.TbeVersion = VersionTuple(1, 0); in TEST()
172 Stub.Arch = ELF::EM_AARCH64; in TEST()
200 Stub.Symbols.insert(SymNot); in TEST()
201 Stub.Symbols.insert(SymBar); in TEST()
202 Stub.Symbols.insert(SymFoo); in TEST()
203 Stub.Symbols.insert(SymNor); in TEST()
206 ELFStub Moved = std::move(Stub); in TEST()
226 ELFStub Stub; in TEST() local
227 Stub.TbeVersion = VersionTuple(1, 0); in TEST()
228 Stub.SoName = "nosyms.so"; in TEST()
229 Stub.Arch = ELF::EM_X86_64; in TEST()
230 Stub.NeededLibs.push_back("libc.so"); in TEST()
231 Stub.NeededLibs.push_back("libfoo.so"); in TEST()
232 Stub.NeededLibs.push_back("libbar.so"); in TEST()
236 ASSERT_THAT_ERROR(writeTBEToOutputStream(OS, Stub), Succeeded()); in TEST()