Home | History | Annotate | Download | only in unittests

Lines Matching defs:memory

325   // Get some executable memory.
330 char* memory = reinterpret_cast<char*>(VirtualAlloc(NULL,
334 ASSERT_TRUE(memory);
337 // in the middle of the block of memory, because the
340 memcpy(memory + kOffset, instructions, sizeof(instructions));
345 reinterpret_cast<void_function>(memory + kOffset);
348 // free the memory.
349 VirtualFree(memory, 0, MEM_RELEASE);
351 // Verify that the resulting minidump contains the memory around the IP
359 // memory list, and then ensure that there is a memory region
360 // in the memory list that covers the instruction pointer from
420 // Get some executable memory. Specifically, reserve two pages,
427 char* memory = all_memory + kPageSize;
428 ASSERT_TRUE(VirtualAlloc(memory, kPageSize,
432 // in the middle of the block of memory, because the
435 memcpy(memory + kOffset, instructions, sizeof(instructions));
440 reinterpret_cast<void_function>(memory + kOffset);
443 // free the memory.
444 VirtualFree(memory, 0, MEM_RELEASE);
446 // Verify that the resulting minidump contains the memory around the IP
454 // memory list, and then ensure that there is a memory region
455 // in the memory list that covers the instruction pointer from
512 // Get some executable memory. Specifically, reserve two pages,
514 char* memory = reinterpret_cast<char*>(VirtualAlloc(NULL,
518 ASSERT_TRUE(memory);
519 ASSERT_TRUE(VirtualAlloc(memory, kPageSize,
523 memcpy(memory + kOffset, instructions, sizeof(instructions));
528 reinterpret_cast<void_function>(memory + kOffset);
531 // free the memory.
532 VirtualFree(memory, 0, MEM_RELEASE);
534 // Verify that the resulting minidump contains the memory around the IP
542 // memory list, and then ensure that there is a memory region
543 // in the memory list that covers the instruction pointer from