mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-02-19 08:42:59 +00:00
Use stdint types everywhere
R=mark at https://breakpad.appspot.com/535002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1121 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
@@ -397,15 +397,15 @@ TEST_F(ExceptionHandlerTest, WriteMinidumpTest) {
|
||||
TEST_F(ExceptionHandlerTest, AdditionalMemory) {
|
||||
SYSTEM_INFO si;
|
||||
GetSystemInfo(&si);
|
||||
const u_int32_t kMemorySize = si.dwPageSize;
|
||||
const uint32_t kMemorySize = si.dwPageSize;
|
||||
|
||||
// Get some heap memory.
|
||||
u_int8_t* memory = new u_int8_t[kMemorySize];
|
||||
uint8_t* memory = new uint8_t[kMemorySize];
|
||||
const uintptr_t kMemoryAddress = reinterpret_cast<uintptr_t>(memory);
|
||||
ASSERT_TRUE(memory);
|
||||
|
||||
// Stick some data into the memory so the contents can be verified.
|
||||
for (u_int32_t i = 0; i < kMemorySize; ++i) {
|
||||
for (uint32_t i = 0; i < kMemorySize; ++i) {
|
||||
memory[i] = i % 255;
|
||||
}
|
||||
|
||||
@@ -451,15 +451,15 @@ TEST_F(ExceptionHandlerTest, AdditionalMemory) {
|
||||
TEST_F(ExceptionHandlerTest, AdditionalMemoryRemove) {
|
||||
SYSTEM_INFO si;
|
||||
GetSystemInfo(&si);
|
||||
const u_int32_t kMemorySize = si.dwPageSize;
|
||||
const uint32_t kMemorySize = si.dwPageSize;
|
||||
|
||||
// Get some heap memory.
|
||||
u_int8_t* memory = new u_int8_t[kMemorySize];
|
||||
uint8_t* memory = new uint8_t[kMemorySize];
|
||||
const uintptr_t kMemoryAddress = reinterpret_cast<uintptr_t>(memory);
|
||||
ASSERT_TRUE(memory);
|
||||
|
||||
// Stick some data into the memory so the contents can be verified.
|
||||
for (u_int32_t i = 0; i < kMemorySize; ++i) {
|
||||
for (uint32_t i = 0; i < kMemorySize; ++i) {
|
||||
memory[i] = i % 255;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user