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
This commit is contained in:
chrisha@chromium.org 2013-09-04 20:43:10 +00:00
parent 16a880e135
commit b097e31d92
2 changed files with 2 additions and 6 deletions

View file

@ -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;
}

View file

@ -108,12 +108,8 @@ 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(static_cast<const CodeModule*>(&module2), frames->at(0)->module);
ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(1)->module);
ASSERT_EQ(static_cast<const CodeModule*>(&module2), frames->at(2)->module);