fake_crash.h 654 B

1234567891011121314151617
  1. // Copyright (c) 2022 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. #ifndef COMPONENTS_VARIATIONS_FAKE_CRASH_H_
  5. #define COMPONENTS_VARIATIONS_FAKE_CRASH_H_
  6. #include "base/component_export.h"
  7. namespace variations {
  8. // Schedules a crash dump to be uploaded (without crashing), if a
  9. // VariationsFakeCrashAfterStartup is enabled. This enabled verification of
  10. // safety measure for detecting crashes caused by features.
  11. COMPONENT_EXPORT(VARIATIONS) void MaybeScheduleFakeCrash();
  12. } // namespace variations
  13. #endif // COMPONENTS_VARIATIONS_FAKE_CRASH_H_