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

Unified Diff: chromeos/process_mock.h

Issue 6865041: libchromeos: Support setting uid/gid of child processes in process.h (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/common.git@master
Patch Set: improve comments Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/process.cc ('k') | chromeos/process_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/process_mock.h
diff --git a/chromeos/process_mock.h b/chromeos/process_mock.h
index caf238dfc4038b84bb07c86435f26acca739a451..f789e817a67cd779e70bb5685802fd23aa31832a 100644
--- a/chromeos/process_mock.h
+++ b/chromeos/process_mock.h
@@ -20,6 +20,8 @@ class ProcessMock : public Process {
MOCK_METHOD1(AddArg, void(const std::string& arg));
MOCK_METHOD1(RedirectOutput, void(const std::string& output_file));
MOCK_METHOD2(RedirectUsingPipe, void(int child_fd, bool is_input));
+ MOCK_METHOD1(SetUid, void(uid_t));
+ MOCK_METHOD1(SetGid, void(gid_t));
MOCK_METHOD1(GetPipe, int(int child_fd));
MOCK_METHOD0(Start, bool());
MOCK_METHOD0(Wait, int());
« no previous file with comments | « chromeos/process.cc ('k') | chromeos/process_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698