blob: c240e85485975b07a79ab308aaa54cdc705fbb93 [file] [log] [blame]
Elly Jones73161782012-08-14 17:37:05 -04001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Alex Vakulenko262be3f2014-07-30 15:25:50 -07005#ifndef DEBUGD_SRC_ICMP_TOOL_H_
6#define DEBUGD_SRC_ICMP_TOOL_H_
Elly Jones73161782012-08-14 17:37:05 -04007
Ben Chana0011d82014-05-13 00:19:29 -07008#include <map>
Elly Jones73161782012-08-14 17:37:05 -04009#include <string>
10
Ben Chan657bed82014-09-02 20:40:51 -070011#include <base/macros.h>
Elly Jones73161782012-08-14 17:37:05 -040012#include <dbus-c++/dbus.h>
13
14namespace debugd {
15
16class ICMPTool {
17 public:
Ben Chan78f89532014-08-29 09:35:09 -070018 ICMPTool() = default;
19 ~ICMPTool() = default;
Elly Jones73161782012-08-14 17:37:05 -040020
21 std::string TestICMP(const std::string& host, DBus::Error* error);
Xiaowen Xinf675f4c2013-06-14 02:27:11 -070022 std::string TestICMPWithOptions(
23 const std::string& host,
24 const std::map<std::string, std::string>& options,
25 DBus::Error* error);
Ben Chana0011d82014-05-13 00:19:29 -070026
Elly Jones73161782012-08-14 17:37:05 -040027 private:
28 DISALLOW_COPY_AND_ASSIGN(ICMPTool);
29};
30
Ben Chana0011d82014-05-13 00:19:29 -070031} // namespace debugd
Elly Jones73161782012-08-14 17:37:05 -040032
Alex Vakulenko262be3f2014-07-30 15:25:50 -070033#endif // DEBUGD_SRC_ICMP_TOOL_H_