Lines Matching refs:map_info

59     MapInfo* map_info = maps_.Get(0);  in SetUp()  local
60 ASSERT_TRUE(map_info != nullptr); in SetUp()
61 EXPECT_EQ(0x3000U, map_info->start()); in SetUp()
62 EXPECT_EQ(0x4000U, map_info->end()); in SetUp()
63 EXPECT_EQ(0U, map_info->offset()); in SetUp()
64 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in SetUp()
65 EXPECT_TRUE(map_info->name().empty()); in SetUp()
67 map_info = maps_.Get(1); in SetUp()
68 ASSERT_TRUE(map_info != nullptr); in SetUp()
69 EXPECT_EQ(0x8000U, map_info->start()); in SetUp()
70 EXPECT_EQ(0x9000U, map_info->end()); in SetUp()
71 EXPECT_EQ(0U, map_info->offset()); in SetUp()
72 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in SetUp()
73 EXPECT_TRUE(map_info->name().empty()); in SetUp()
88 MapInfo* map_info = maps_.Get(0); in TEST_F() local
89 ASSERT_TRUE(map_info != nullptr); in TEST_F()
90 EXPECT_EQ(0x3000U, map_info->start()); in TEST_F()
91 EXPECT_EQ(0x4000U, map_info->end()); in TEST_F()
92 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
93 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
94 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
96 map_info = maps_.Get(1); in TEST_F()
97 ASSERT_TRUE(map_info != nullptr); in TEST_F()
98 EXPECT_EQ(0x8000U, map_info->start()); in TEST_F()
99 EXPECT_EQ(0x9000U, map_info->end()); in TEST_F()
100 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
101 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
102 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
116 MapInfo* map_info = maps_.Get(0); in TEST_F() local
117 ASSERT_TRUE(map_info != nullptr); in TEST_F()
118 EXPECT_EQ(0x3000U, map_info->start()); in TEST_F()
119 EXPECT_EQ(0x4000U, map_info->end()); in TEST_F()
120 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
121 EXPECT_EQ(PROT_READ | PROT_WRITE | PROT_EXEC, map_info->flags()); in TEST_F()
122 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
124 map_info = maps_.Get(1); in TEST_F()
125 ASSERT_TRUE(map_info != nullptr); in TEST_F()
126 EXPECT_EQ(0x8000U, map_info->start()); in TEST_F()
127 EXPECT_EQ(0x9000U, map_info->end()); in TEST_F()
128 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
129 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
130 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
134 map_info = saved_maps[0].get(); in TEST_F()
135 ASSERT_TRUE(map_info != nullptr); in TEST_F()
136 EXPECT_EQ(0x3000U, map_info->start()); in TEST_F()
137 EXPECT_EQ(0x4000U, map_info->end()); in TEST_F()
138 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
139 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
140 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
154 MapInfo* map_info = maps_.Get(0); in TEST_F() local
155 ASSERT_TRUE(map_info != nullptr); in TEST_F()
156 EXPECT_EQ(0x3000U, map_info->start()); in TEST_F()
157 EXPECT_EQ(0x4000U, map_info->end()); in TEST_F()
158 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
159 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
160 EXPECT_EQ("/fake/lib.so", map_info->name()); in TEST_F()
162 map_info = maps_.Get(1); in TEST_F()
163 ASSERT_TRUE(map_info != nullptr); in TEST_F()
164 EXPECT_EQ(0x8000U, map_info->start()); in TEST_F()
165 EXPECT_EQ(0x9000U, map_info->end()); in TEST_F()
166 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
167 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
168 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
172 map_info = saved_maps[0].get(); in TEST_F()
173 ASSERT_TRUE(map_info != nullptr); in TEST_F()
174 EXPECT_EQ(0x3000U, map_info->start()); in TEST_F()
175 EXPECT_EQ(0x4000U, map_info->end()); in TEST_F()
176 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
177 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
178 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
195 MapInfo* map_info = maps_.Get(0); in TEST_F() local
196 ASSERT_TRUE(map_info != nullptr); in TEST_F()
197 EXPECT_EQ(0x1000U, map_info->start()); in TEST_F()
198 EXPECT_EQ(0x2000U, map_info->end()); in TEST_F()
199 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
200 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
201 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
203 map_info = maps_.Get(1); in TEST_F()
204 ASSERT_TRUE(map_info != nullptr); in TEST_F()
205 EXPECT_EQ(0x3000U, map_info->start()); in TEST_F()
206 EXPECT_EQ(0x4000U, map_info->end()); in TEST_F()
207 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
208 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
209 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
211 map_info = maps_.Get(2); in TEST_F()
212 ASSERT_TRUE(map_info != nullptr); in TEST_F()
213 EXPECT_EQ(0x8000U, map_info->start()); in TEST_F()
214 EXPECT_EQ(0x9000U, map_info->end()); in TEST_F()
215 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
216 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
217 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
219 map_info = maps_.Get(3); in TEST_F()
220 ASSERT_TRUE(map_info != nullptr); in TEST_F()
221 EXPECT_EQ(0xa000U, map_info->start()); in TEST_F()
222 EXPECT_EQ(0xf000U, map_info->end()); in TEST_F()
223 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
224 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
225 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
239 MapInfo* map_info = maps_.Get(0); in TEST_F() local
240 ASSERT_TRUE(map_info != nullptr); in TEST_F()
241 EXPECT_EQ(0x1000U, map_info->start()); in TEST_F()
242 EXPECT_EQ(0x2000U, map_info->end()); in TEST_F()
243 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
244 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
245 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
247 map_info = maps_.Get(1); in TEST_F()
248 ASSERT_TRUE(map_info != nullptr); in TEST_F()
249 EXPECT_EQ(0xa000U, map_info->start()); in TEST_F()
250 EXPECT_EQ(0xf000U, map_info->end()); in TEST_F()
251 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
252 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
253 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
257 map_info = saved_maps[0].get(); in TEST_F()
258 ASSERT_TRUE(map_info != nullptr); in TEST_F()
259 EXPECT_EQ(0x3000U, map_info->start()); in TEST_F()
260 EXPECT_EQ(0x4000U, map_info->end()); in TEST_F()
261 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
262 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
263 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
265 map_info = saved_maps[1].get(); in TEST_F()
266 ASSERT_TRUE(map_info != nullptr); in TEST_F()
267 EXPECT_EQ(0x8000U, map_info->start()); in TEST_F()
268 EXPECT_EQ(0x9000U, map_info->end()); in TEST_F()
269 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
270 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
271 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
286 MapInfo* map_info = maps_.Get(2); in TEST_F() local
287 ASSERT_TRUE(map_info != nullptr); in TEST_F()
288 EXPECT_EQ(0x9000U, map_info->start()); in TEST_F()
289 EXPECT_EQ(0xA000U, map_info->end()); in TEST_F()
290 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
291 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
292 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
293 EXPECT_EQ(maps_.Get(1), map_info->prev_map()); in TEST_F()
316 MapInfo* map_info = maps_.Get(2); in TEST_F() local
317 ASSERT_TRUE(map_info != nullptr); in TEST_F()
318 EXPECT_EQ(0x7000U, map_info->start()); in TEST_F()
319 EXPECT_EQ(0x8000U, map_info->end()); in TEST_F()
320 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
321 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
322 EXPECT_EQ(maps_.Get(0), map_info->prev_real_map()); in TEST_F()
323 EXPECT_EQ(maps_.Get(1), map_info->prev_map()); in TEST_F()
324 EXPECT_EQ("/fake/lib1.so", map_info->name()); in TEST_F()
326 map_info = maps_.Get(3); in TEST_F()
327 ASSERT_TRUE(map_info != nullptr); in TEST_F()
328 EXPECT_EQ(0x8000U, map_info->start()); in TEST_F()
329 EXPECT_EQ(0x9000U, map_info->end()); in TEST_F()
330 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
331 EXPECT_TRUE(map_info->IsBlank()); in TEST_F()
332 EXPECT_EQ(maps_.Get(2), map_info->prev_real_map()); in TEST_F()
333 EXPECT_EQ(maps_.Get(2), map_info->prev_map()); in TEST_F()
334 EXPECT_TRUE(map_info->name().empty()); in TEST_F()
355 map_info = maps_.Get(2); in TEST_F()
356 ASSERT_TRUE(map_info != nullptr); in TEST_F()
357 EXPECT_EQ(0x7000U, map_info->start()); in TEST_F()
358 EXPECT_EQ(0x8000U, map_info->end()); in TEST_F()
359 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
360 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
361 EXPECT_EQ("/fake/lib1.so", map_info->name()); in TEST_F()
362 EXPECT_EQ(maps_.Get(1), map_info->prev_map()); in TEST_F()
363 EXPECT_EQ(maps_.Get(0), map_info->prev_real_map()); in TEST_F()
365 map_info = maps_.Get(4); in TEST_F()
366 ASSERT_TRUE(map_info != nullptr); in TEST_F()
367 EXPECT_EQ(0x9000U, map_info->start()); in TEST_F()
368 EXPECT_EQ(0xA000U, map_info->end()); in TEST_F()
369 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
370 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
371 EXPECT_EQ("/fake/lib2.so", map_info->name()); in TEST_F()
372 EXPECT_EQ(maps_.Get(3), map_info->prev_map()); in TEST_F()
373 EXPECT_EQ(maps_.Get(2), map_info->prev_real_map()); in TEST_F()
375 map_info = maps_.Get(5); in TEST_F()
376 ASSERT_TRUE(map_info != nullptr); in TEST_F()
377 EXPECT_EQ(0xA000U, map_info->start()); in TEST_F()
378 EXPECT_EQ(0xB000U, map_info->end()); in TEST_F()
379 EXPECT_EQ(0U, map_info->offset()); in TEST_F()
380 EXPECT_EQ(PROT_READ | PROT_EXEC, map_info->flags()); in TEST_F()
381 EXPECT_EQ("/fake/lib3.so", map_info->name()); in TEST_F()
382 EXPECT_EQ(maps_.Get(4), map_info->prev_map()); in TEST_F()
383 EXPECT_EQ(maps_.Get(4), map_info->prev_real_map()); in TEST_F()