Ken Russell | 538bdbc | 2018-01-25 18:13:07 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CONTENT_RENDERER_CRASH_HELPERS_H_ |
| 6 | #define CONTENT_RENDERER_CRASH_HELPERS_H_ |
| 7 | |
| 8 | #include "base/compiler_specific.h" |
| 9 | |
| 10 | namespace content { |
| 11 | |
| 12 | namespace internal { |
| 13 | |
| 14 | // These functions are defined in a separate file from the calling |
| 15 | // file to try to prevent the compiler from inlining them. Some tests |
| 16 | // which verify crashpad, and stack symbolization from minidumps, |
| 17 | // expect to find the names of these functions. |
| 18 | |
| 19 | NOINLINE void CrashIntentionally(); |
| 20 | NOINLINE void BadCastCrashIntentionally(); |
| 21 | |
| 22 | } // namespace internal |
| 23 | |
| 24 | } // namespace content |
| 25 | |
| 26 | #endif // CONTENT_RENDERER_CRASH_HELPERS_H_ |