blob: b4197c4c15aa132e46fef2573a7d1e9409c8f500 [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
Ben Chana0011d82014-05-13 00:19:29 -07005#ifndef ICMP_TOOL_H_
6#define 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
11#include <base/basictypes.h>
12#include <dbus-c++/dbus.h>
13
14namespace debugd {
15
16class ICMPTool {
17 public:
18 ICMPTool();
19 ~ICMPTool();
20
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
Ben Chana0011d82014-05-13 00:19:29 -070033#endif // ICMP_TOOL_H_