#include "chrome/enterprise_companion/crash_client.h"
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/files/file_enumerator.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/scoped_refptr.h"
#include "base/path_service.h"
#include "base/process/launch.h"
#include "base/process/process.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/test/test_timeouts.h"
#include "base/threading/thread_restrictions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace enterprise_companion {
namespace {
#if BUILDFLAG(IS_WIN)
constexpr char kCrashExe[] = "test_crashpad_embedder.exe";
#else
constexpr char kCrashExe[] = …;
#endif
constexpr char kCrashDatabaseSwitch[] = …;
}
class CrashClientTest : public ::testing::Test { … };
TEST_F(CrashClientTest, CrashCreatesReport) { … }
}