Home
last modified time | relevance | path

Searched refs:kMappedSize (Results 1 – 2 of 2) sorted by relevance

/external/perfetto/src/base/
Dpaged_memory_unittest.cc104 constexpr size_t kMappedSize = 4096 * 1024; in TEST() local
106 for (size_t i = 0; i < kMappedSize / sizeof(uint64_t); i++) in TEST()
109 ASSERT_TRUE(vm_test_utils::IsMapped(ptr_raw, kMappedSize)); in TEST()
112 ASSERT_FALSE(vm_test_utils::IsMapped(ptr_raw + kMappedSize, 4096)); in TEST()
113 EXPECT_DEATH_IF_SUPPORTED({ ptr_raw[kMappedSize] = 'x'; }, ".*"); in TEST()
118 for (size_t i = kMappedSize / sizeof(uint64_t); in TEST()
158 constexpr size_t kMappedSize = 4096 * 1024; in TEST()
159 ptr_raw[kMappedSize] = 'x'; in TEST()
/external/libchrome/base/process/
Dprocess_metrics_unittest.cc635 const size_t kMappedSize = 4 * (1 << 20); in TEST() local
637 ASSERT_TRUE(memory.CreateAndMapAnonymous(kMappedSize)); in TEST()
638 memset(memory.memory(), 42, kMappedSize); in TEST()