blob: 2eab2ec12c79880f64fc5bf350c23218e82228ab [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CRASH_REPORTER_CRASH_SENDER_PATHS_H_
#define CRASH_REPORTER_CRASH_SENDER_PATHS_H_
namespace paths {
// File whose existence mocks crash sending. If empty we pretend the
// crash sending was successful, otherwise unsuccessful.
constexpr char kMockCrashSending[] = "mock-crash-sending";
// File whose existence causes crash sending to be delayed (for testing).
// Must be stateful to enable testing kernel crashes.
constexpr char kPauseCrashSending[] = "/var/lib/crash_sender_paused";
// Directory where crash_sender stores timestamp files, that indicate the
// upload attempts in the past 24 hours.
constexpr char kTimestampsDirectory[] = "/var/lib/crash_sender";
// Directory where crash_sender stores other state information (ex. client ID).
constexpr char kCrashSenderStateDirectory[] = "/var/lib/crash_sender/state";
// Chrome's crash report log file.
constexpr char kChromeCrashLog[] = "/var/log/chrome/Crash Reports/uploads.log";
} // namespace paths
#endif // CRASH_REPORTER_CRASH_SENDER_PATHS_H_