Lines Matching refs:maps
29 BufferMaps maps(line.c_str()); in VerifyLine() local
32 ASSERT_FALSE(maps.Parse()) << "Failed on: " + line; in VerifyLine()
34 ASSERT_TRUE(maps.Parse()) << "Failed on: " + line; in VerifyLine()
35 MapInfo* element = maps.Get(0); in VerifyLine()
47 Maps maps; in TEST() local
49 maps.Add(0x1000, 0x2000, 0, PROT_READ, "fake_map", 0); in TEST()
50 maps.Add(0x3000, 0x4000, 0x10, 0, "", 0x1234); in TEST()
51 maps.Add(0x5000, 0x6000, 1, 2, "fake_map2", static_cast<uint64_t>(-1)); in TEST()
53 ASSERT_EQ(3U, maps.Total()); in TEST()
54 MapInfo* info = maps.Get(0); in TEST()
65 Maps maps; in TEST() local
67 maps.Add(0x1000, 0x2000, 0, PROT_READ, "fake_map", 0); in TEST()
68 maps.Add(0x3000, 0x4000, 0x10, 0, "", 0x1234); in TEST()
69 maps.Add(0x5000, 0x6000, 1, 2, "fake_map2", static_cast<uint64_t>(-1)); in TEST()
71 Maps maps2 = std::move(maps); in TEST()
175 BufferMaps maps( in TEST() local
182 ASSERT_TRUE(maps.Parse()); in TEST()
183 ASSERT_EQ(5U, maps.Total()); in TEST()
185 MapInfo* info = maps.Get(0); in TEST()
193 info = maps.Get(1); in TEST()
201 info = maps.Get(2); in TEST()
209 info = maps.Get(3); in TEST()
217 info = maps.Get(4); in TEST()
225 ASSERT_TRUE(maps.Get(5) == nullptr); in TEST()
229 BufferMaps maps( in TEST() local
234 ASSERT_TRUE(maps.Parse()); in TEST()
235 ASSERT_EQ(3U, maps.Total()); in TEST()
237 MapInfo* info = maps.Get(0); in TEST()
245 info = maps.Get(1); in TEST()
253 info = maps.Get(2); in TEST()
261 ASSERT_TRUE(maps.Get(3) == nullptr); in TEST()
265 BufferMaps maps( in TEST() local
269 ASSERT_TRUE(maps.Parse()); in TEST()
270 ASSERT_EQ(2U, maps.Total()); in TEST()
272 MapInfo* info = maps.Get(0); in TEST()
280 info = maps.Get(1); in TEST()
288 ASSERT_TRUE(maps.Get(2) == nullptr); in TEST()
292 BufferMaps maps( in TEST() local
296 ASSERT_TRUE(maps.Parse()); in TEST()
297 ASSERT_EQ(2U, maps.Total()); in TEST()
299 Maps::iterator it = maps.begin(); in TEST()
306 EXPECT_EQ(maps.end(), it); in TEST()
310 BufferMaps maps( in TEST() local
314 ASSERT_TRUE(maps.Parse()); in TEST()
315 ASSERT_EQ(2U, maps.Total()); in TEST()
317 Maps::const_iterator it = maps.begin(); in TEST()
324 EXPECT_EQ(maps.end(), it); in TEST()
328 BufferMaps maps( in TEST() local
334 ASSERT_TRUE(maps.Parse()); in TEST()
335 ASSERT_EQ(4U, maps.Total()); in TEST()
337 MapInfo* info = maps.Get(0); in TEST()
342 info = maps.Get(1); in TEST()
346 info = maps.Get(2); in TEST()
350 info = maps.Get(3); in TEST()
365 FileMaps maps(tf.path); in TEST() local
367 ASSERT_TRUE(maps.Parse()); in TEST()
368 ASSERT_EQ(3U, maps.Total()); in TEST()
370 MapInfo* info = maps.Get(0); in TEST()
378 info = maps.Get(1); in TEST()
386 info = maps.Get(2); in TEST()
394 ASSERT_TRUE(maps.Get(3) == nullptr); in TEST()
407 FileMaps maps(tf.path); in TEST() local
409 ASSERT_TRUE(maps.Parse()); in TEST()
410 ASSERT_EQ(3U, maps.Total()); in TEST()
412 MapInfo* info = maps.Get(0); in TEST()
420 info = maps.Get(1); in TEST()
428 info = maps.Get(2); in TEST()
436 ASSERT_TRUE(maps.Get(3) == nullptr); in TEST()
499 FileMaps maps(tf.path); in TEST() local
500 ASSERT_TRUE(maps.Parse()); in TEST()
501 EXPECT_EQ(index, maps.Total()); in TEST()
504 MapInfo* info = maps.Get(i); in TEST()
529 FileMaps maps(tf.path); in TEST() local
531 ASSERT_FALSE(maps.Parse()); in TEST()
549 FileMaps maps(tf.path); in TEST() local
551 ASSERT_TRUE(maps.Parse()); in TEST()
552 ASSERT_EQ(5000U, maps.Total()); in TEST()
554 MapInfo* info = maps.Get(i); in TEST()
563 BufferMaps maps( in TEST() local
569 ASSERT_TRUE(maps.Parse()); in TEST()
570 ASSERT_EQ(5U, maps.Total()); in TEST()
572 EXPECT_TRUE(maps.Find(0x500) == nullptr); in TEST()
573 EXPECT_TRUE(maps.Find(0x2000) == nullptr); in TEST()
574 EXPECT_TRUE(maps.Find(0x5010) == nullptr); in TEST()
575 EXPECT_TRUE(maps.Find(0x9a00) == nullptr); in TEST()
576 EXPECT_TRUE(maps.Find(0xf000) == nullptr); in TEST()
577 EXPECT_TRUE(maps.Find(0xf010) == nullptr); in TEST()
579 MapInfo* info = maps.Find(0x1000); in TEST()
587 info = maps.Find(0x3020); in TEST()
595 info = maps.Find(0x6020); in TEST()
603 info = maps.Find(0xafff); in TEST()
611 info = maps.Find(0xe500); in TEST()