Teach Google Test how to emit stack traces.
This CL provides an OsStackTraceGetterInterface implementation for
Google Test that uses Chromium's base::debug. This allows Google Test to
emit stack traces to make debugging test failures a bit easier. As a
result, failures that once looked like the following will now include
stack traces:
[ RUN ] UpgradeDetectorImplTest.TestPeriodChanges
unknown file: error: Uninteresting mock function call - returning directly.
Function call: OnUpgradeRecommended()
[ FAILED ] UpgradeDetectorImplTest.TestPeriodChanges (3 ms)
BUG=none
R=dpranke@chromium.org
Change-Id: I992d807cc654104d0bad461fda8cb82c86e6e9f8
Reviewed-on: https://chromium-review.googlesource.com/1009947
Commit-Queue: Greg Thompson <grt@chromium.org>
Reviewed-by:
Lei Zhang <thestig@chromium.org>
Reviewed-by:
Dirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551083}
Showing
Please register or sign in to comment