From b097e31d92cf31aa02ad333338a430a98818afda Mon Sep 17 00:00:00 2001 From: "chrisha@chromium.org" Date: Wed, 4 Sep 2013 20:43:10 +0000 Subject: [PATCH] Make StackWalkerAddressList use FRAME_TRUST_PREWALKED trust level. Review URL: https://breakpad.appspot.com/624002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1209 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/stackwalker_address_list.cc | 2 +- src/processor/stackwalker_address_list_unittest.cc | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/processor/stackwalker_address_list.cc b/src/processor/stackwalker_address_list.cc index 55656032..e81fec28 100644 --- a/src/processor/stackwalker_address_list.cc +++ b/src/processor/stackwalker_address_list.cc @@ -64,7 +64,7 @@ StackFrame* StackwalkerAddressList::GetContextFrame() { StackFrame* frame = new StackFrame(); frame->instruction = frames_[0]; - frame->trust = StackFrame::FRAME_TRUST_CONTEXT; + frame->trust = StackFrame::FRAME_TRUST_PREWALKED; return frame; } diff --git a/src/processor/stackwalker_address_list_unittest.cc b/src/processor/stackwalker_address_list_unittest.cc index 2eb36cd7..ab4e9c08 100644 --- a/src/processor/stackwalker_address_list_unittest.cc +++ b/src/processor/stackwalker_address_list_unittest.cc @@ -108,11 +108,7 @@ class StackwalkerAddressListTest : public testing::Test { ASSERT_EQ(arraysize(kDummyFrames), frames->size()); for (size_t i = 0; i < arraysize(kDummyFrames); ++i) { ASSERT_EQ(kDummyFrames[i], frames->at(i)->instruction); - if (i == 0) { - ASSERT_EQ(StackFrame::FRAME_TRUST_CONTEXT, frames->at(i)->trust); - } else { - ASSERT_EQ(StackFrame::FRAME_TRUST_PREWALKED, frames->at(i)->trust); - } + ASSERT_EQ(StackFrame::FRAME_TRUST_PREWALKED, frames->at(i)->trust); } ASSERT_EQ(static_cast(&module2), frames->at(0)->module); ASSERT_EQ(static_cast(&module2), frames->at(1)->module);