diff options
author | chrisha@chromium.org <chrisha@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-09-04 20:43:10 +0000 |
---|---|---|
committer | chrisha@chromium.org <chrisha@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2013-09-04 20:43:10 +0000 |
commit | b097e31d92cf31aa02ad333338a430a98818afda (patch) | |
tree | 73c0bcaa865d0ce2e62191c7d5b6032c4c8a65a7 | |
parent | Create StackFrame::FRAME_TRUST_PREWALKED trust type. (diff) | |
download | breakpad-b097e31d92cf31aa02ad333338a430a98818afda.tar.xz |
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
-rw-r--r-- | src/processor/stackwalker_address_list.cc | 2 | ||||
-rw-r--r-- | 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<const CodeModule*>(&module2), frames->at(0)->module); ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(1)->module); |