Lines Matching refs:interface
45 ElfInterfaceArmFake interface(&memory_);
49 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value));
53 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value));
57 ASSERT_TRUE(interface.GetPrel31Addr(0x1000, &value));
62 ElfInterfaceArmFake interface(&memory_);
63 interface.FakeSetStartOffset(0);
64 interface.FakeSetTotalEntries(10);
67 ASSERT_FALSE(interface.FindEntry(0x1000, &entry_offset));
71 ElfInterfaceArmFake interface(&memory_);
72 interface.FakeSetStartOffset(0x100);
73 interface.FakeSetTotalEntries(0);
76 ASSERT_FALSE(interface.FindEntry(0x1000, &entry_offset));
80 ElfInterfaceArmFake interface(&memory_);
81 interface.FakeSetStartOffset(0x100);
82 interface.FakeSetTotalEntries(2);
85 ASSERT_FALSE(interface.FindEntry(0x1000, &entry_offset));
89 ElfInterfaceArmFake interface(&memory_);
90 interface.FakeSetStartOffset(0x1000);
91 interface.FakeSetTotalEntries(1);
95 ASSERT_FALSE(interface.FindEntry(0x1000, &entry_offset));
99 ElfInterfaceArmFake interface(&memory_);
100 interface.FakeSetStartOffset(0x8000);
101 interface.FakeSetTotalEntries(1);
105 ASSERT_TRUE(interface.FindEntry(0x7ff0, &entry_offset));
110 ElfInterfaceArmFake interface(&memory_);
111 interface.FakeSetStartOffset(0x1000);
112 interface.FakeSetTotalEntries(2);
117 ASSERT_TRUE(interface.FindEntry(0x7000, &entry_offset));
122 ElfInterfaceArmFake interface(&memory_);
123 interface.FakeSetStartOffset(0x1000);
124 interface.FakeSetTotalEntries(1);
128 ASSERT_TRUE(interface.FindEntry(0x7000, &entry_offset));
134 ASSERT_TRUE(interface.FindEntry(0x7004, &entry_offset));
139 ElfInterfaceArmFake interface(&memory_);
140 interface.FakeSetStartOffset(0x1000);
141 interface.FakeSetTotalEntries(2);
146 ASSERT_TRUE(interface.FindEntry(0x9008, &entry_offset));
153 ASSERT_TRUE(interface.FindEntry(0x9100, &entry_offset));
158 ElfInterfaceArmFake interface(&memory_);
159 interface.FakeSetStartOffset(0x1000);
160 interface.FakeSetTotalEntries(4);
167 ASSERT_TRUE(interface.FindEntry(0x9100, &entry_offset));
176 ASSERT_TRUE(interface.FindEntry(0x9100, &entry_offset));
181 ElfInterfaceArmFake interface(&memory_);
182 interface.FakeSetStartOffset(0x1000);
183 interface.FakeSetTotalEntries(5);
191 ASSERT_TRUE(interface.FindEntry(0x8100, &entry_offset));
201 ASSERT_TRUE(interface.FindEntry(0x8100, &entry_offset));
206 ElfInterfaceArmFake interface(&memory_);
207 interface.FakeSetStartOffset(0x1000);
208 interface.FakeSetTotalEntries(5);
216 for (auto addr : interface) {
234 for (auto addr : interface) {
246 ElfInterfaceArmFake interface(&memory_);
248 ASSERT_FALSE(interface.HandleType(0x1000, PT_NULL, 0));
249 ASSERT_FALSE(interface.HandleType(0x1000, PT_LOAD, 0));
250 ASSERT_FALSE(interface.HandleType(0x1000, PT_DYNAMIC, 0));
251 ASSERT_FALSE(interface.HandleType(0x1000, PT_INTERP, 0));
252 ASSERT_FALSE(interface.HandleType(0x1000, PT_NOTE, 0));
253 ASSERT_FALSE(interface.HandleType(0x1000, PT_SHLIB, 0));
254 ASSERT_FALSE(interface.HandleType(0x1000, PT_PHDR, 0));
255 ASSERT_FALSE(interface.HandleType(0x1000, PT_TLS, 0));
256 ASSERT_FALSE(interface.HandleType(0x1000, PT_LOOS, 0));
257 ASSERT_FALSE(interface.HandleType(0x1000, PT_HIOS, 0));
258 ASSERT_FALSE(interface.HandleType(0x1000, PT_LOPROC, 0));
259 ASSERT_FALSE(interface.HandleType(0x1000, PT_HIPROC, 0));
260 ASSERT_FALSE(interface.HandleType(0x1000, PT_GNU_EH_FRAME, 0));
261 ASSERT_FALSE(interface.HandleType(0x1000, PT_GNU_STACK, 0));
265 ElfInterfaceArmFake interface(&memory_);
268 interface.FakeSetStartOffset(0x1000);
269 interface.FakeSetTotalEntries(100);
274 ASSERT_TRUE(interface.HandleType(0x1000, 0x70000001, 0));
275 ASSERT_EQ(0x1000U, interface.start_offset());
276 ASSERT_EQ(100U, interface.total_entries());
282 ASSERT_TRUE(interface.HandleType(0x1000, 0x70000001, 0));
283 ASSERT_EQ(0x1000U, interface.start_offset());
284 ASSERT_EQ(100U, interface.total_entries());
290 ASSERT_TRUE(interface.HandleType(0x1000, 0x70000001, 0));
291 ASSERT_EQ(0x2000U, interface.start_offset());
292 ASSERT_EQ(320U, interface.total_entries());
295 ASSERT_TRUE(interface.HandleType(0x1000, 0x70000001, 0x1000));
296 ASSERT_EQ(0x1000U, interface.start_offset());
297 ASSERT_EQ(320U, interface.total_entries());
301 ElfInterfaceArmFake interface(&memory_);
305 ASSERT_FALSE(interface.StepExidx(0x7000, 0, nullptr, nullptr, &finished));
306 EXPECT_EQ(ERROR_UNWIND_INFO, interface.LastErrorCode());
309 interface.FakeSetStartOffset(0x1000);
310 interface.FakeSetTotalEntries(2);
319 ASSERT_FALSE(interface.StepExidx(0x7000, 0, ®s, &process_memory_, &finished));
320 EXPECT_EQ(ERROR_MEMORY_INVALID, interface.LastErrorCode());
321 EXPECT_EQ(0x1004U, interface.LastErrorAddress());
325 ASSERT_FALSE(interface.StepExidx(0x7000, 0, ®s, &process_memory_, &finished));
326 EXPECT_EQ(ERROR_UNWIND_INFO, interface.LastErrorCode());
330 ASSERT_TRUE(interface.StepExidx(0x7000, 0, ®s, &process_memory_, &finished));
331 EXPECT_EQ(ERROR_UNWIND_INFO, interface.LastErrorCode());
339 ASSERT_TRUE(interface.StepExidx(0x8000, 0x1000, ®s, &process_memory_, &finished));
340 EXPECT_EQ(ERROR_UNWIND_INFO, interface.LastErrorCode());
343 ASSERT_FALSE(interface.StepExidx(0x8000, 0x9000, ®s, &process_memory_, &finished));
344 EXPECT_EQ(ERROR_UNWIND_INFO, interface.LastErrorCode());
348 ElfInterfaceArmFake interface(&memory_);
350 interface.FakeSetStartOffset(0x1000);
351 interface.FakeSetTotalEntries(2);
365 ASSERT_TRUE(interface.StepExidx(0x7000, 0, ®s, &process_memory_, &finished));
366 EXPECT_EQ(ERROR_NONE, interface.LastErrorCode());
375 ElfInterfaceArmFake interface(&memory_);
377 interface.FakeSetStartOffset(0x1000);
378 interface.FakeSetTotalEntries(1);
389 ASSERT_TRUE(interface.StepExidx(0x7000, 0, ®s, &process_memory_, &finished));
390 EXPECT_EQ(ERROR_NONE, interface.LastErrorCode());
398 ElfInterfaceArmFake interface(&memory_);
400 interface.FakeSetStartOffset(0x1000);
401 interface.FakeSetTotalEntries(1);
412 ASSERT_TRUE(interface.StepExidx(0x7000, 0, ®s, &process_memory_, &finished));
413 EXPECT_EQ(ERROR_NONE, interface.LastErrorCode());
421 ElfInterfaceArmFake interface(&memory_);
423 interface.FakeSetStartOffset(0x1000);
424 interface.FakeSetTotalEntries(1);
439 ASSERT_TRUE(interface.StepExidx(0x7000, 0, ®s, &process_memory_, &finished));
440 EXPECT_EQ(ERROR_NONE, interface.LastErrorCode());
452 ASSERT_TRUE(interface.StepExidx(0x7000, 0, ®s, &process_memory_, &finished));
453 EXPECT_EQ(ERROR_NONE, interface.LastErrorCode());