blob: 4b348a3dd8a25b5c3367bcb10c8897b1ff6eb669 [file] [log] [blame]
// Copyright 2019 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 DEV_INSTALL_DEV_INSTALL_H_
#define DEV_INSTALL_DEV_INSTALL_H_
#include <string>
#include <vector>
#include <base/macros.h>
namespace dev_install {
class DevInstall {
public:
DevInstall();
explicit DevInstall(const std::string& binhost,
const std::string& binhost_version,
bool reinstall,
bool uninstall,
bool yes,
bool only_bootstrap);
// Run the dev_install routine.
int Run();
// Exec the helper script. Mostly for mocking.
virtual int Exec(const std::vector<const char*>& argv);
private:
bool reinstall_;
bool uninstall_;
bool yes_;
bool only_bootstrap_;
std::string binhost_;
std::string binhost_version_;
DISALLOW_COPY_AND_ASSIGN(DevInstall);
};
} // namespace dev_install
#endif // DEV_INSTALL_DEV_INSTALL_H_