• Home
  • Raw
  • Download

Lines Matching refs:memory

94   std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_));  in TEST_F()  local
95 ASSERT_TRUE(memory.get() == nullptr); in TEST_F()
98 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
99 ASSERT_TRUE(memory.get() == nullptr); in TEST_F()
103 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
104 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
113 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
114 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
121 ASSERT_TRUE(memory->ReadFully(0, buffer.data(), 1024)); in TEST_F()
128 ASSERT_FALSE(memory->ReadFully(1024, buffer.data(), 1)); in TEST_F()
141 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
142 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
151 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
152 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
161 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
162 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
171 memory.reset(info.CreateMemory(process_memory_)); in TEST_F()
172 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
183 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
184 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
191 ASSERT_TRUE(memory->ReadFully(0, buffer.data(), 0x100)); in TEST_F()
198 ASSERT_FALSE(memory->ReadFully(0x100, buffer.data(), 1)); in TEST_F()
208 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
209 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
216 ASSERT_TRUE(memory->ReadFully(0, e_ident, SELFMAG)); in TEST_F()
220 ASSERT_TRUE(memory->ReadFully(0x1000, e_ident, 1)); in TEST_F()
226 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
227 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
234 ASSERT_TRUE(memory->ReadFully(0, e_ident, SELFMAG)); in TEST_F()
238 ASSERT_TRUE(memory->ReadFully(0x1000, e_ident, 1)); in TEST_F()
249 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
250 ASSERT_TRUE(memory.get() == nullptr); in TEST_F()
268 std::unique_ptr<Memory> memory(info.CreateMemory(process_memory_)); in TEST_F() local
269 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
273 ASSERT_TRUE(memory->ReadFully(0, buffer.data(), buffer.size())); in TEST_F()
280 ASSERT_FALSE(memory->ReadFully(buffer.size(), buffer.data(), 1)); in TEST_F()
386 std::unique_ptr<Memory> memory(map_info->CreateMemory(process_memory_)); in TEST_F() local
387 ASSERT_TRUE(memory.get() != nullptr); in TEST_F()
393 ASSERT_TRUE(memory->ReadFully(0, buffer.data(), 0x100)); in TEST_F()
404 memory.reset(map_info->CreateMemory(process_memory_)); in TEST_F()
410 ASSERT_TRUE(memory->ReadFully(0, &ehdr_mem, sizeof(ehdr_mem))); in TEST_F()