#include "remoting/test/cli_util.h"
#include <string.h>
#include "base/command_line.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool.h"
namespace {
void PrintOption(int option_number, const std::string& option_name) { … }
}
namespace remoting {
namespace test {
CommandOption::CommandOption() = default;
CommandOption::CommandOption(const CommandOption&) = default;
CommandOption::CommandOption(CommandOption&&) = default;
CommandOption::CommandOption(
const std::string name,
const base::RepeatingCallback<void(base::OnceClosure on_done)>& command)
: … { … }
CommandOption::~CommandOption() = default;
CommandOption& CommandOption::operator=(const CommandOption&) = default;
CommandOption& CommandOption::operator=(CommandOption&&) = default;
void RunCommandOptionsLoop(const std::vector<CommandOption>& options) { … }
std::string ReadString() { … }
bool ReadYNBool(bool default_value) { … }
std::string ReadStringFromCommandLineOrStdin(const std::string& switch_name,
const std::string& read_prompt) { … }
void WaitForEnterKey(base::OnceClosure on_done) { … }
}
}