| Index: tools/battor_agent/serial_utils.h
|
| diff --git a/tools/battor_agent/serial_utils.h b/tools/battor_agent/serial_utils.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ae1e6cc7944bedad835c30a271b6480d5afdcd5f
|
| --- /dev/null
|
| +++ b/tools/battor_agent/serial_utils.h
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2016 The Chromium 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 TOOLS_BATTOR_AGENT_SERIAL_UTILS_H_
|
| +#define TOOLS_BATTOR_AGENT_SERIAL_UTILS_H_
|
| +
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +namespace battor {
|
| +
|
| +// Prints |bytes| as a space separated list of hex numbers (e.g. {'A', 'J'}
|
| +// would return "0x41 0x4A").
|
| +std::string CharArrayToString(const char* bytes, size_t len);
|
| +std::string CharVectorToString(const std::vector<char> bytes);
|
| +
|
| +} // namespace battor
|
| +
|
| +#endif // TOOLS_BATTOR_AGENT_SERIAL_UTILS_H_
|
|
|