blob: 1afa9422e7363002edcd39481620c88e92b2560e [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
10#include <base/basictypes.h>
11#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);
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070025};
26
Ben Chana0011d82014-05-13 00:19:29 -070027} // namespace debugd
Gediminas Ramanauskas2f0b8852013-03-14 13:52:32 -070028
Alex Vakulenko262be3f2014-07-30 15:25:50 -070029#endif // DEBUGD_SRC_MEMORY_TOOL_H_