Lines Matching refs:EXPECT_EQ
51 EXPECT_EQ(usage.rss, 0); in TEST()
52 EXPECT_EQ(usage.vss, 0); in TEST()
53 EXPECT_EQ(usage.pss, 0); in TEST()
54 EXPECT_EQ(usage.uss, 0); in TEST()
55 EXPECT_EQ(usage.swap, 0); in TEST()
194 EXPECT_EQ(wss.rss, 0); in TEST()
195 EXPECT_EQ(wss.vss, 0); in TEST()
196 EXPECT_EQ(wss.pss, 0); in TEST()
197 EXPECT_EQ(wss.uss, 0); in TEST()
198 EXPECT_EQ(wss.swap, 0); in TEST()
206 EXPECT_EQ(swap_offsets.size(), 0); in TEST()
215 EXPECT_EQ(!access(path.c_str(), F_OK | R_OK), supported); in TEST()
218 EXPECT_EQ(supported, IsSmapsRollupSupported(-1)); in TEST()
246 EXPECT_EQ(stats.rss, 331908); in TEST()
247 EXPECT_EQ(stats.pss, 202052); in TEST()
248 EXPECT_EQ(stats.uss, 154488); in TEST()
249 EXPECT_EQ(stats.private_clean, 90472); in TEST()
250 EXPECT_EQ(stats.private_dirty, 64016); in TEST()
251 EXPECT_EQ(stats.swap_pss, 442); in TEST()
286 EXPECT_EQ(stats.rss, 2652); in TEST()
287 EXPECT_EQ(stats.pss, 2652); in TEST()
288 EXPECT_EQ(stats.uss, 2736); in TEST()
289 EXPECT_EQ(stats.private_clean, 84); in TEST()
290 EXPECT_EQ(stats.private_dirty, 2652); in TEST()
291 EXPECT_EQ(stats.swap_pss, 70); in TEST()
327 EXPECT_EQ(pss, 2652); in TEST()
337 EXPECT_EQ(pss, 19119); in TEST()
356 EXPECT_EQ(vmas[1].usage.vss, 11204); in TEST()
357 EXPECT_EQ(vmas[2].usage.vss, 16896); in TEST()
358 EXPECT_EQ(vmas[3].usage.vss, 260); in TEST()
359 EXPECT_EQ(vmas[4].usage.vss, 6060); in TEST()
360 EXPECT_EQ(vmas[5].usage.vss, 4); in TEST()
363 EXPECT_EQ(vmas[0].name, "[anon:dalvik-zygote-jit-code-cache]"); in TEST()
364 EXPECT_EQ(vmas[1].name, "/system/framework/x86_64/boot-framework.art"); in TEST()
368 EXPECT_EQ(vmas[3].name, "/system/priv-app/SettingsProvider/oat/x86_64/SettingsProvider.odex"); in TEST()
369 EXPECT_EQ(vmas[4].name, "/system/lib64/libhwui.so"); in TEST()
370 EXPECT_EQ(vmas[5].name, "[vsyscall]"); in TEST()
372 EXPECT_EQ(vmas[0].usage.rss, 2048); in TEST()
373 EXPECT_EQ(vmas[1].usage.rss, 11188); in TEST()
374 EXPECT_EQ(vmas[2].usage.rss, 15272); in TEST()
375 EXPECT_EQ(vmas[3].usage.rss, 260); in TEST()
376 EXPECT_EQ(vmas[4].usage.rss, 4132); in TEST()
377 EXPECT_EQ(vmas[5].usage.rss, 0); in TEST()
379 EXPECT_EQ(vmas[0].usage.pss, 113); in TEST()
380 EXPECT_EQ(vmas[1].usage.pss, 2200); in TEST()
381 EXPECT_EQ(vmas[2].usage.pss, 15272); in TEST()
382 EXPECT_EQ(vmas[3].usage.pss, 260); in TEST()
383 EXPECT_EQ(vmas[4].usage.pss, 1274); in TEST()
384 EXPECT_EQ(vmas[5].usage.pss, 0); in TEST()
386 EXPECT_EQ(vmas[0].usage.uss, 0); in TEST()
387 EXPECT_EQ(vmas[1].usage.uss, 1660); in TEST()
388 EXPECT_EQ(vmas[2].usage.uss, 15272); in TEST()
389 EXPECT_EQ(vmas[3].usage.uss, 260); in TEST()
390 EXPECT_EQ(vmas[4].usage.uss, 0); in TEST()
391 EXPECT_EQ(vmas[5].usage.uss, 0); in TEST()
393 EXPECT_EQ(vmas[0].usage.private_clean, 0); in TEST()
394 EXPECT_EQ(vmas[1].usage.private_clean, 0); in TEST()
395 EXPECT_EQ(vmas[2].usage.private_clean, 0); in TEST()
396 EXPECT_EQ(vmas[3].usage.private_clean, 260); in TEST()
397 EXPECT_EQ(vmas[4].usage.private_clean, 0); in TEST()
398 EXPECT_EQ(vmas[5].usage.private_clean, 0); in TEST()
400 EXPECT_EQ(vmas[0].usage.private_dirty, 0); in TEST()
401 EXPECT_EQ(vmas[1].usage.private_dirty, 1660); in TEST()
402 EXPECT_EQ(vmas[2].usage.private_dirty, 15272); in TEST()
403 EXPECT_EQ(vmas[3].usage.private_dirty, 0); in TEST()
404 EXPECT_EQ(vmas[4].usage.private_dirty, 0); in TEST()
405 EXPECT_EQ(vmas[5].usage.private_dirty, 0); in TEST()
407 EXPECT_EQ(vmas[0].usage.shared_clean, 0); in TEST()
408 EXPECT_EQ(vmas[1].usage.shared_clean, 80); in TEST()
409 EXPECT_EQ(vmas[2].usage.shared_clean, 0); in TEST()
410 EXPECT_EQ(vmas[3].usage.shared_clean, 0); in TEST()
411 EXPECT_EQ(vmas[4].usage.shared_clean, 4132); in TEST()
412 EXPECT_EQ(vmas[5].usage.shared_clean, 0); in TEST()
414 EXPECT_EQ(vmas[0].usage.shared_dirty, 2048); in TEST()
415 EXPECT_EQ(vmas[1].usage.shared_dirty, 9448); in TEST()
416 EXPECT_EQ(vmas[2].usage.shared_dirty, 0); in TEST()
417 EXPECT_EQ(vmas[3].usage.shared_dirty, 0); in TEST()
418 EXPECT_EQ(vmas[4].usage.shared_dirty, 0); in TEST()
419 EXPECT_EQ(vmas[5].usage.shared_dirty, 0); in TEST()
421 EXPECT_EQ(vmas[0].usage.swap, 0); in TEST()
422 EXPECT_EQ(vmas[1].usage.swap, 0); in TEST()
423 EXPECT_EQ(vmas[2].usage.swap, 0); in TEST()
424 EXPECT_EQ(vmas[3].usage.swap, 0); in TEST()
425 EXPECT_EQ(vmas[4].usage.swap, 0); in TEST()
426 EXPECT_EQ(vmas[5].usage.swap, 0); in TEST()
428 EXPECT_EQ(vmas[0].usage.swap_pss, 0); in TEST()
429 EXPECT_EQ(vmas[1].usage.swap_pss, 0); in TEST()
430 EXPECT_EQ(vmas[2].usage.swap_pss, 0); in TEST()
431 EXPECT_EQ(vmas[3].usage.swap_pss, 0); in TEST()
432 EXPECT_EQ(vmas[4].usage.swap_pss, 0); in TEST()
433 EXPECT_EQ(vmas[5].usage.swap_pss, 0); in TEST()
456 EXPECT_EQ(vmas[1].usage.vss, 11204); in TEST()
457 EXPECT_EQ(vmas[2].usage.vss, 16896); in TEST()
458 EXPECT_EQ(vmas[3].usage.vss, 260); in TEST()
459 EXPECT_EQ(vmas[4].usage.vss, 6060); in TEST()
460 EXPECT_EQ(vmas[5].usage.vss, 4); in TEST()
463 EXPECT_EQ(vmas[0].name, "[anon:dalvik-zygote-jit-code-cache]"); in TEST()
464 EXPECT_EQ(vmas[1].name, "/system/framework/x86_64/boot-framework.art"); in TEST()
468 EXPECT_EQ(vmas[3].name, "/system/priv-app/SettingsProvider/oat/x86_64/SettingsProvider.odex"); in TEST()
469 EXPECT_EQ(vmas[4].name, "/system/lib64/libhwui.so"); in TEST()
470 EXPECT_EQ(vmas[5].name, "[vsyscall]"); in TEST()
472 EXPECT_EQ(vmas[0].usage.rss, 2048); in TEST()
473 EXPECT_EQ(vmas[1].usage.rss, 11188); in TEST()
474 EXPECT_EQ(vmas[2].usage.rss, 15272); in TEST()
475 EXPECT_EQ(vmas[3].usage.rss, 260); in TEST()
476 EXPECT_EQ(vmas[4].usage.rss, 4132); in TEST()
477 EXPECT_EQ(vmas[5].usage.rss, 0); in TEST()
479 EXPECT_EQ(vmas[0].usage.pss, 113); in TEST()
480 EXPECT_EQ(vmas[1].usage.pss, 2200); in TEST()
481 EXPECT_EQ(vmas[2].usage.pss, 15272); in TEST()
482 EXPECT_EQ(vmas[3].usage.pss, 260); in TEST()
483 EXPECT_EQ(vmas[4].usage.pss, 1274); in TEST()
484 EXPECT_EQ(vmas[5].usage.pss, 0); in TEST()
486 EXPECT_EQ(vmas[0].usage.uss, 0); in TEST()
487 EXPECT_EQ(vmas[1].usage.uss, 1660); in TEST()
488 EXPECT_EQ(vmas[2].usage.uss, 15272); in TEST()
489 EXPECT_EQ(vmas[3].usage.uss, 260); in TEST()
490 EXPECT_EQ(vmas[4].usage.uss, 0); in TEST()
491 EXPECT_EQ(vmas[5].usage.uss, 0); in TEST()
493 EXPECT_EQ(vmas[0].usage.private_clean, 0); in TEST()
494 EXPECT_EQ(vmas[1].usage.private_clean, 0); in TEST()
495 EXPECT_EQ(vmas[2].usage.private_clean, 0); in TEST()
496 EXPECT_EQ(vmas[3].usage.private_clean, 260); in TEST()
497 EXPECT_EQ(vmas[4].usage.private_clean, 0); in TEST()
498 EXPECT_EQ(vmas[5].usage.private_clean, 0); in TEST()
500 EXPECT_EQ(vmas[0].usage.private_dirty, 0); in TEST()
501 EXPECT_EQ(vmas[1].usage.private_dirty, 1660); in TEST()
502 EXPECT_EQ(vmas[2].usage.private_dirty, 15272); in TEST()
503 EXPECT_EQ(vmas[3].usage.private_dirty, 0); in TEST()
504 EXPECT_EQ(vmas[4].usage.private_dirty, 0); in TEST()
505 EXPECT_EQ(vmas[5].usage.private_dirty, 0); in TEST()
507 EXPECT_EQ(vmas[0].usage.shared_clean, 0); in TEST()
508 EXPECT_EQ(vmas[1].usage.shared_clean, 80); in TEST()
509 EXPECT_EQ(vmas[2].usage.shared_clean, 0); in TEST()
510 EXPECT_EQ(vmas[3].usage.shared_clean, 0); in TEST()
511 EXPECT_EQ(vmas[4].usage.shared_clean, 4132); in TEST()
512 EXPECT_EQ(vmas[5].usage.shared_clean, 0); in TEST()
514 EXPECT_EQ(vmas[0].usage.shared_dirty, 2048); in TEST()
515 EXPECT_EQ(vmas[1].usage.shared_dirty, 9448); in TEST()
516 EXPECT_EQ(vmas[2].usage.shared_dirty, 0); in TEST()
517 EXPECT_EQ(vmas[3].usage.shared_dirty, 0); in TEST()
518 EXPECT_EQ(vmas[4].usage.shared_dirty, 0); in TEST()
519 EXPECT_EQ(vmas[5].usage.shared_dirty, 0); in TEST()
521 EXPECT_EQ(vmas[0].usage.swap, 0); in TEST()
522 EXPECT_EQ(vmas[1].usage.swap, 0); in TEST()
523 EXPECT_EQ(vmas[2].usage.swap, 0); in TEST()
524 EXPECT_EQ(vmas[3].usage.swap, 0); in TEST()
525 EXPECT_EQ(vmas[4].usage.swap, 0); in TEST()
526 EXPECT_EQ(vmas[5].usage.swap, 0); in TEST()
528 EXPECT_EQ(vmas[0].usage.swap_pss, 0); in TEST()
529 EXPECT_EQ(vmas[1].usage.swap_pss, 0); in TEST()
530 EXPECT_EQ(vmas[2].usage.swap_pss, 0); in TEST()
531 EXPECT_EQ(vmas[3].usage.swap_pss, 0); in TEST()
532 EXPECT_EQ(vmas[4].usage.swap_pss, 0); in TEST()
533 EXPECT_EQ(vmas[5].usage.swap_pss, 0); in TEST()
589 EXPECT_EQ(mi.mem_total_kb(), 3019740); in TEST()
590 EXPECT_EQ(mi.mem_free_kb(), 1809728); in TEST()
591 EXPECT_EQ(mi.mem_buffers_kb(), 54736); in TEST()
592 EXPECT_EQ(mi.mem_cached_kb(), 776052); in TEST()
593 EXPECT_EQ(mi.mem_shmem_kb(), 4020); in TEST()
594 EXPECT_EQ(mi.mem_slab_kb(), 86464); in TEST()
595 EXPECT_EQ(mi.mem_slab_reclaimable_kb(), 44432); in TEST()
596 EXPECT_EQ(mi.mem_slab_unreclaimable_kb(), 42032); in TEST()
597 EXPECT_EQ(mi.mem_swap_kb(), 32768); in TEST()
598 EXPECT_EQ(mi.mem_swap_free_kb(), 4096); in TEST()
599 EXPECT_EQ(mi.mem_mapped_kb(), 62624); in TEST()
600 EXPECT_EQ(mi.mem_vmalloc_used_kb(), 65536); in TEST()
601 EXPECT_EQ(mi.mem_page_tables_kb(), 2900); in TEST()
602 EXPECT_EQ(mi.mem_kernel_stack_kb(), 4880); in TEST()
603 EXPECT_EQ(mi.mem_kreclaimable_kb(), 87324); in TEST()
614 EXPECT_EQ(mi.mem_total_kb(), 0); in TEST()
622 EXPECT_EQ(mi.mem_zram_kb(zram_mmstat_dir), 30504); in TEST()
625 EXPECT_EQ(mi.mem_zram_kb(zram_memused_dir), 30504); in TEST()
708 EXPECT_EQ(mem[MEMINFO_TOTAL], 3019740); in TEST()
709 EXPECT_EQ(mem[MEMINFO_FREE], 1809728); in TEST()
710 EXPECT_EQ(mem[MEMINFO_BUFFERS], 54736); in TEST()
711 EXPECT_EQ(mem[MEMINFO_CACHED], 776052); in TEST()
712 EXPECT_EQ(mem[MEMINFO_SHMEM], 4020); in TEST()
713 EXPECT_EQ(mem[MEMINFO_SLAB], 86464); in TEST()
714 EXPECT_EQ(mem[MEMINFO_SLAB_RECLAIMABLE], 44432); in TEST()
715 EXPECT_EQ(mem[MEMINFO_SLAB_UNRECLAIMABLE], 42032); in TEST()
716 EXPECT_EQ(mem[MEMINFO_SWAP_TOTAL], 32768); in TEST()
717 EXPECT_EQ(mem[MEMINFO_SWAP_FREE], 4096); in TEST()
718 EXPECT_EQ(mem[MEMINFO_MAPPED], 62624); in TEST()
719 EXPECT_EQ(mem[MEMINFO_VMALLOC_USED], 65536); in TEST()
720 EXPECT_EQ(mem[MEMINFO_PAGE_TABLES], 2900); in TEST()
721 EXPECT_EQ(mem[MEMINFO_KERNEL_STACK], 4880); in TEST()
722 EXPECT_EQ(mem[MEMINFO_KRECLAIMABLE], 87324); in TEST()
737 EXPECT_EQ(ReadVmallocInfo(file), 0); in TEST()
749 EXPECT_EQ(ReadVmallocInfo(file), getpagesize()); in TEST()
761 EXPECT_EQ(ReadVmallocInfo(file), 6 * getpagesize()); in TEST()
778 EXPECT_EQ(ReadVmallocInfo(file), 7 * getpagesize()); in TEST()
791 EXPECT_EQ(size, 98480); in TEST()
804 EXPECT_EQ(size, 416); in TEST()