DCHECK for proper usage in StackTraceGetter.

Code that uses GoogleTest assertions without using GoogleTest itself
will result in calls to CurrentStackTrace without a preceding call to
UponLeavingGTest. Make this easier to diagnose with a DCHECK.

BUG=1039559

Change-Id: Id80aa918f2197625ec4b1025a99d778aed46c1d3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2090413
Auto-Submit: Greg Thompson <grt@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Reviewed-by: Victor Costan <pwnall@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#747635}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 0870173a25630e17f018aa8a5486bd1a07f6e40d
1 file changed
tree: c7c45971e601998b091c328e607c3b49714304e1
  1. custom/
  2. .gitignore
  3. BUILD.gn
  4. DEPS
  5. OWNERS
  6. README.chromium