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

Unified Diff: mock_options.h

Issue 6881066: [minijail] Add the ability to set capabilities from the command line (Closed) Base URL: http://git.chromium.org/git/minijail.git@master
Patch Set: 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 | « minijail_unittest.cc ('k') | options.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mock_options.h
diff --git a/mock_options.h b/mock_options.h
index 535fa19e327907575254e8a98ca5ebba01220770..1259f11b45da1c31d58ab2c8b4cd13f540a3f18e 100644
--- a/mock_options.h
+++ b/mock_options.h
@@ -29,6 +29,7 @@ class MockOptions : public Options {
MOCK_CONST_METHOD0(environment, char * const *());
MOCK_METHOD1(set_add_readonly_mounts, void(bool));
+ MOCK_METHOD1(set_caps_bitmask, void(uint64));
MOCK_METHOD1(set_disable_tracing, void(bool));
MOCK_METHOD1(set_enforce_syscalls_benchmark, void(bool));
MOCK_METHOD1(set_enforce_syscalls_by_source, void(bool));
@@ -40,6 +41,7 @@ class MockOptions : public Options {
MOCK_METHOD1(set_use_capabilities, void(bool));
MOCK_CONST_METHOD0(add_readonly_mounts, bool());
+ MOCK_CONST_METHOD0(caps_bitmask, uint64());
MOCK_CONST_METHOD0(disable_tracing, bool());
MOCK_CONST_METHOD0(enforce_syscalls_benchmark, bool());
MOCK_CONST_METHOD0(enforce_syscalls_by_source, bool());
« no previous file with comments | « minijail_unittest.cc ('k') | options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698