Home | History | Annotate | Download | only in unittests

Lines Matching defs:memory

70     MiniDumpWithFullMemory |  // Full memory from process.
273 // Minidump should have a memory listing, but no 64-bit memory.
344 // Minidump should have a memory listing, but no 64-bit memory.
396 // Test that an additional memory region can be included in the minidump.
402 // Get some heap memory.
403 uint8_t* memory = new uint8_t[kMemorySize];
404 const uintptr_t kMemoryAddress = reinterpret_cast<uintptr_t>(memory);
405 ASSERT_TRUE(memory);
407 // Stick some data into the memory so the contents can be verified.
409 memory[i] = i % 255;
421 // Add the memory region to the list of memory to be included.
422 handler.RegisterAppMemory(memory, kMemorySize);
430 // Read the minidump. Ensure that the memory region is present
443 // Verify memory contents.
444 EXPECT_EQ(0, memcmp(region->GetMemory(), memory, kMemorySize));
446 delete[] memory;
449 // Test that a memory
456 // Get some heap memory.
457 uint8_t* memory = new uint8_t[kMemorySize];
458 const uintptr_t kMemoryAddress = reinterpret_cast<uintptr_t>(memory);
459 ASSERT_TRUE(memory);
461 // Stick some data into the memory so the contents can be verified.
463 memory[i] = i % 255;
475 // Add the memory region to the list of memory to be included.
476 handler.RegisterAppMemory(memory, kMemorySize);
479 handler.UnregisterAppMemory(memory);
488 // Read the minidump. Ensure that the memory region is not present.
498 delete[] memory;