Elly Jones | 7316178 | 2012-08-14 17:37:05 -0400 | [diff] [blame] | 1 | // 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 | |
| 5 | #ifndef ICMP_TOOL_H |
| 6 | #define ICMP_TOOL_H |
| 7 | |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/basictypes.h> |
| 11 | #include <dbus-c++/dbus.h> |
| 12 | |
| 13 | namespace debugd { |
| 14 | |
| 15 | class ICMPTool { |
| 16 | public: |
| 17 | ICMPTool(); |
| 18 | ~ICMPTool(); |
| 19 | |
| 20 | std::string TestICMP(const std::string& host, DBus::Error* error); |
Xiaowen Xin | f675f4c | 2013-06-14 02:27:11 -0700 | [diff] [blame] | 21 | std::string TestICMPWithOptions( |
| 22 | const std::string& host, |
| 23 | const std::map<std::string, std::string>& options, |
| 24 | DBus::Error* error); |
Elly Jones | 7316178 | 2012-08-14 17:37:05 -0400 | [diff] [blame] | 25 | private: |
| 26 | DISALLOW_COPY_AND_ASSIGN(ICMPTool); |
| 27 | }; |
| 28 | |
| 29 | }; // namespace debugd |
| 30 | |
| 31 | #endif // ICMP_TOOL_H |