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

Side by Side Diff: mock_system_utils.h

Issue 553016: port to use centralized constants files, and add input validation (Closed)
Patch Set: address shell injection, otehr comments (per wad) Created 10 years, 11 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
« no previous file with comments | « mock_child_job.h ('k') | session_manager_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_
6 #define LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_
7
8 #include "login_manager/system_utils.h"
9
10 #include <unistd.h>
11 #include <gmock/gmock.h>
12
13 namespace login_manager {
14 class MockSystemUtils : public SystemUtils {
15 public:
16 MockSystemUtils() {}
17 ~MockSystemUtils() {}
18 MOCK_METHOD2(kill, int(pid_t pid, int signal));
19 MOCK_METHOD1(child_is_gone, bool(pid_t child_spec));
20 };
21 } // namespace login_manager
22
23 #endif // LOGIN_MANAGER_MOCK_SYSTEM_UTILS_H_
OLDNEW
« no previous file with comments | « mock_child_job.h ('k') | session_manager_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698