| Index: chromeos/process_mock.h
|
| diff --git a/chromeos/process_mock.h b/chromeos/process_mock.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cf9144ce42b2989755695311aa9e1a86b6b4671f
|
| --- /dev/null
|
| +++ b/chromeos/process_mock.h
|
| @@ -0,0 +1,34 @@
|
| +// Copyright (c) 2011 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 CHROMEOS_PROCESS_MOCK_H_
|
| +#define CHROMEOS_PROCESS_MOCK_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include <chromeos/process.h>
|
| +#include <gmock/gmock.h>
|
| +
|
| +namespace chromeos {
|
| +
|
| +class ProcessMock : public Process {
|
| + public:
|
| + ProcessMock() {}
|
| + virtual ~ProcessMock() {}
|
| +
|
| + MOCK_METHOD1(AddArg, void(const std::string& arg));
|
| + MOCK_METHOD1(RedirectOutput, void(const std::string& output_file));
|
| + MOCK_METHOD0(Start, bool());
|
| + MOCK_METHOD0(Wait, int());
|
| + MOCK_METHOD0(Run, int());
|
| + MOCK_METHOD0(pid, pid_t());
|
| + MOCK_METHOD2(Kill, bool(int signal, int timeout));
|
| + MOCK_METHOD1(Reset, void(pid_t));
|
| + MOCK_METHOD1(ResetPidByFile, bool(const std::string& pid_file));
|
| + MOCK_METHOD0(Release, pid_t());
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROMEOS_PROCESS_MOCK_H_
|
|
|