blob: 996e60cc326410d3cf41b130b27cc22114a03da9 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEBUGD_SRC_MODEM_STATUS_TOOL_H_
#define DEBUGD_SRC_MODEM_STATUS_TOOL_H_
#include <string>
#include <base/macros.h>
namespace debugd {
class ModemStatusTool {
public:
ModemStatusTool() = default;
~ModemStatusTool() = default;
std::string GetModemStatus();
std::string RunModemCommand(const std::string& command);
private:
friend class ModemStatusToolTest;
std::string SendATCommand(const std::string& command);
static std::string CollapseNewLines(const std::string& input);
DISALLOW_COPY_AND_ASSIGN(ModemStatusTool);
};
} // namespace debugd
#endif // DEBUGD_SRC_MODEM_STATUS_TOOL_H_