mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-19 18:03:47 +00:00
Fix an instance of -Wshadow.
Bug: chromium:794619 Change-Id: I504c2931e19f7de4f9d65227fc55978622d0de6f Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3253960 Reviewed-by: Mark Mentovai <mark@chromium.org> Reviewed-by: Justin Cohen <justincohen@chromium.org> Commit-Queue: Peter Kasting <pkasting@chromium.org>
This commit is contained in:
parent
d842c3c4c6
commit
defcda0c2c
@ -336,9 +336,8 @@ class ProcessSnapshotIOSIntermediateDumpTest : public testing::Test {
|
|||||||
stack_region_address += 10;
|
stack_region_address += 10;
|
||||||
EXPECT_TRUE(
|
EXPECT_TRUE(
|
||||||
writer->AddProperty(Key::kStackRegionAddress, &stack_region_address));
|
writer->AddProperty(Key::kStackRegionAddress, &stack_region_address));
|
||||||
constexpr char memory_region[] = "stack_data";
|
|
||||||
EXPECT_TRUE(
|
EXPECT_TRUE(
|
||||||
writer->AddPropertyBytes(Key::kStackRegionData, memory_region, 10));
|
writer->AddPropertyBytes(Key::kStackRegionData, "stack_data", 10));
|
||||||
{
|
{
|
||||||
IOSIntermediateDumpWriter::ScopedArray memoryRegions(
|
IOSIntermediateDumpWriter::ScopedArray memoryRegions(
|
||||||
writer, Key::kThreadContextMemoryRegions);
|
writer, Key::kThreadContextMemoryRegions);
|
||||||
@ -347,9 +346,8 @@ class ProcessSnapshotIOSIntermediateDumpTest : public testing::Test {
|
|||||||
const vm_address_t memory_region_address = 0;
|
const vm_address_t memory_region_address = 0;
|
||||||
EXPECT_TRUE(writer->AddProperty(
|
EXPECT_TRUE(writer->AddProperty(
|
||||||
Key::kThreadContextMemoryRegionAddress, &memory_region_address));
|
Key::kThreadContextMemoryRegionAddress, &memory_region_address));
|
||||||
constexpr char memory_region[] = "string";
|
|
||||||
EXPECT_TRUE(writer->AddPropertyBytes(
|
EXPECT_TRUE(writer->AddPropertyBytes(
|
||||||
Key::kThreadContextMemoryRegionData, memory_region, 6));
|
Key::kThreadContextMemoryRegionData, "string", 6));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user