blob: 5a653cc737fd90eceeddf9fb0eed0f8abd2c2697 [file] [log] [blame]
// Copyright (c) 2012 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 DEBUGD_SRC_PING_TOOL_H_
#define DEBUGD_SRC_PING_TOOL_H_
#include <map>
#include <string>
#include <base/macros.h>
#include <dbus-c++/dbus.h>
#include "debugd/src/subprocess_tool.h"
namespace debugd {
class PingTool : public SubprocessTool {
public:
PingTool() = default;
~PingTool() override = default;
std::string Start(const DBus::FileDescriptor& outfd,
const std::string& destination,
const std::map<std::string, DBus::Variant>& options,
DBus::Error* error);
private:
DISALLOW_COPY_AND_ASSIGN(PingTool);
};
} // namespace debugd
#endif // DEBUGD_SRC_PING_TOOL_H_