Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chromeos/process_mock.h

Issue 6509006: libchromeos: add process control library, syslog logging capability, and run unit tests (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/common.git@master
Patch Set: sync Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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
5 #ifndef CHROMEOS_PROCESS_MOCK_H_
6 #define CHROMEOS_PROCESS_MOCK_H_
7
8 #include <string>
9
10 #include <chromeos/process.h>
11 #include <gmock/gmock.h>
12
13 class ProcessMock : public Process {
14 public:
15 ProcessMock() {}
16 virtual ~ProcessMock() {}
17
18 MOCK_METHOD1(AddArg, void(const std::string& arg));
19 MOCK_METHOD1(SetOutput, void(const std::string& output_file));
20 MOCK_METHOD0(Start, bool());
21 MOCK_METHOD0(Wait, int());
22 MOCK_METHOD0(Run, int());
23 MOCK_METHOD0(GetPid, pid_t());
24 MOCK_METHOD2(Kill, bool(int signal, int timeout));
25 MOCK_METHOD1(Reset, void(pid_t));
26 MOCK_METHOD1(ResetPidByFile, bool(const std::string& pid_file));
27 MOCK_METHOD0(Release, pid_t());
28 };
29
30 #endif // CHROMEOS_PROCESS_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698