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

Side by Side Diff: src/platform/minijail/mock_env.h

Issue 542124: Update minijail tests with real mocks and packaging testing deps (Closed)
Patch Set: integrate notes from cmasone 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 | « src/platform/minijail/minijail_unittest.cc ('k') | src/platform/minijail/mock_interface.h » ('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 // Env mock class
6 #ifndef __CHROMEOS_MINIJAIL_MOCK_ENV_H
7 #define __CHROMEOS_MINIJAIL_MOCK_ENV_H
8
9 #include "env.h"
10
11 #include <gtest/gtest.h>
12 #include <gmock/gmock.h>
13
14 namespace chromeos {
15 namespace minijail {
16
17 class MockEnv : public Env {
18 public:
19 MockEnv() { }
20 ~MockEnv() { }
21 MOCK_CONST_METHOD2(ChangeUser, bool(uid_t, gid_t));
22 MOCK_CONST_METHOD0(DisableDefaultRootPrivileges, bool());
23 MOCK_CONST_METHOD0(DisableTracing, bool());
24 MOCK_CONST_METHOD1(EnterNamespace, bool(int));
25 MOCK_CONST_METHOD0(FilterSyscallsBenchmarkOnly, bool());
26 MOCK_CONST_METHOD0(FilterSyscallsBySource, bool());
27 MOCK_CONST_METHOD0(KeepRootCapabilities, bool());
28 MOCK_CONST_METHOD0(Mount, bool());
29 MOCK_CONST_METHOD1(SanitizeBoundingSet, bool(uint64));
30 MOCK_CONST_METHOD1(SanitizeCapabilities, bool(uint64));
31 MOCK_CONST_METHOD3(Run, bool(const char *, char * const *, char * const *));
32 };
33
34 } // namespace minijail
35 } // namespace chromeos
36
37 #endif // __CHROMEOS_MINIJAIL_MOCK_ENV_H
OLDNEW
« no previous file with comments | « src/platform/minijail/minijail_unittest.cc ('k') | src/platform/minijail/mock_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698