blob: 1ebe8b39935aaf1f81d5ce5bbb9be79c3f395ce1 [file] [log] [blame]
// Copyright 2019 The Chromium 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 CHROME_UPDATER_WIN_TEST_TEST_EXECUTABLES_H_
#define CHROME_UPDATER_WIN_TEST_TEST_EXECUTABLES_H_
#include "base/process/process.h"
#include "base/strings/string16.h"
namespace base {
class CommandLine;
} // namespace base
namespace updater {
// The name of the service executable used for tests.
extern const base::char16 kTestServiceExecutableName[];
// The name of the executable used for tests.
extern const base::char16 kTestProcessExecutableName[];
// Creates a process that will run for a minute, which is long enough to be
// killed by a reasonably fast unit or integration test.
// Populates |command_line| with the used command line if it is not nullptr.
base::Process LongRunningProcess(base::CommandLine* command_line);
} // namespace updater
#endif // CHROME_UPDATER_WIN_TEST_TEST_EXECUTABLES_H_