blob: 9a87b225a5b04790b74400953c81a4c7ef1c37b8 [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
Ben Chan657bed82014-09-02 20:40:51 -070010#include <base/macros.h>
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070011#include <dbus-c++/dbus.h>
12
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;
20 ~MemtesterTool() override = default;
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070021
22 std::string Start(const DBus::FileDescriptor& outfd,
23 const uint32_t& memory,
Ben Chana0011d82014-05-13 00:19:29 -070024 DBus::Error* error);
Ben Chan657bed82014-09-02 20:40:51 -070025
26 private:
27 DISALLOW_COPY_AND_ASSIGN(MemtesterTool);
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070028};
29
Ben Chana0011d82014-05-13 00:19:29 -070030} // namespace debugd
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070031
Alex Vakulenko262be3f2014-07-30 15:25:50 -070032#endif // DEBUGD_SRC_MEMORY_TOOL_H_