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 | |
Alex Vakulenko | 262be3f | 2014-07-30 15:25:50 -0700 | [diff] [blame] | 5 | #ifndef DEBUGD_SRC_ICMP_TOOL_H_ |
| 6 | #define DEBUGD_SRC_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 | |
Ben Chan | 657bed8 | 2014-09-02 20:40:51 -0700 | [diff] [blame] | 11 | #include <base/macros.h> |
Elly Jones | 7316178 | 2012-08-14 17:37:05 -0400 | [diff] [blame] | 12 | |
| 13 | namespace debugd { |
| 14 | |
| 15 | class ICMPTool { |
| 16 | public: |
Ben Chan | 78f8953 | 2014-08-29 09:35:09 -0700 | [diff] [blame] | 17 | ICMPTool() = default; |
| 18 | ~ICMPTool() = default; |
Elly Jones | 7316178 | 2012-08-14 17:37:05 -0400 | [diff] [blame] | 19 | |
Eric Caruso | c93a15c | 2017-04-24 16:15:12 -0700 | [diff] [blame] | 20 | std::string TestICMP(const std::string& host); |
Xiaowen Xin | f675f4c | 2013-06-14 02:27:11 -0700 | [diff] [blame] | 21 | std::string TestICMPWithOptions( |
| 22 | const std::string& host, |
Eric Caruso | c93a15c | 2017-04-24 16:15:12 -0700 | [diff] [blame] | 23 | const std::map<std::string, std::string>& options); |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 24 | |
Elly Jones | 7316178 | 2012-08-14 17:37:05 -0400 | [diff] [blame] | 25 | private: |
| 26 | DISALLOW_COPY_AND_ASSIGN(ICMPTool); |
| 27 | }; |
| 28 | |
Ben Chan | a0011d8 | 2014-05-13 00:19:29 -0700 | [diff] [blame] | 29 | } // namespace debugd |
Elly Jones | 7316178 | 2012-08-14 17:37:05 -0400 | [diff] [blame] | 30 | |
Alex Vakulenko | 262be3f | 2014-07-30 15:25:50 -0700 | [diff] [blame] | 31 | #endif // DEBUGD_SRC_ICMP_TOOL_H_ |