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