blob: aab6506cdf27d94a85a3d95ffdf2a0200053d68e [file] [log] [blame]
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -07001// 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 Vakulenko262be3f2014-07-30 15:25:50 -07005#ifndef DEBUGD_SRC_MEMORY_TOOL_H_
6#define DEBUGD_SRC_MEMORY_TOOL_H_
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -07007
8#include <string>
9
Eric Caruso0b241882018-04-04 13:43:46 -070010#include <base/files/scoped_file.h>
Ben Chan657bed82014-09-02 20:40:51 -070011#include <base/macros.h>
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070012
Alex Vakulenko262be3f2014-07-30 15:25:50 -070013#include "debugd/src/subprocess_tool.h"
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070014
15namespace debugd {
16
17class MemtesterTool : public SubprocessTool {
18 public:
Ben Chan78f89532014-08-29 09:35:09 -070019 MemtesterTool() = default;
Qijiang Fan6bc59e12020-11-11 02:51:06 +090020 MemtesterTool(const MemtesterTool&) = delete;
21 MemtesterTool& operator=(const MemtesterTool&) = delete;
22
Ben Chan78f89532014-08-29 09:35:09 -070023 ~MemtesterTool() override = default;
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070024
Tom Hughesd6c2d392020-08-24 18:12:11 -070025 std::string Start(const base::ScopedFD& outfd, const uint32_t& memory);
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070026};
27
Ben Chana0011d82014-05-13 00:19:29 -070028} // namespace debugd
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070029
Alex Vakulenko262be3f2014-07-30 15:25:50 -070030#endif // DEBUGD_SRC_MEMORY_TOOL_H_