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

Unified Diff: sandbox/linux/bpf_dsl/policy.cc

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sandbox/linux/bpf_dsl/policy.h ('k') | sandbox/linux/bpf_dsl/policy_compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/bpf_dsl/policy.cc
diff --git a/sandbox/linux/tests/sandbox_test_runner.cc b/sandbox/linux/bpf_dsl/policy.cc
similarity index 50%
copy from sandbox/linux/tests/sandbox_test_runner.cc
copy to sandbox/linux/bpf_dsl/policy.cc
index b099b972893da4286cc0989eb291a5d37c906727..c20edc6da86254335226e794fb092b86d37b579c 100644
--- a/sandbox/linux/tests/sandbox_test_runner.cc
+++ b/sandbox/linux/bpf_dsl/policy.cc
@@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sandbox/linux/tests/sandbox_test_runner.h"
+#include "sandbox/linux/bpf_dsl/policy.h"
-namespace sandbox {
+#include <errno.h>
-SandboxTestRunner::SandboxTestRunner() {
-}
+#include "sandbox/linux/bpf_dsl/bpf_dsl.h"
-SandboxTestRunner::~SandboxTestRunner() {
-}
+namespace sandbox {
+namespace bpf_dsl {
-bool SandboxTestRunner::ShouldCheckForLeaks() const {
- return true;
+ResultExpr Policy::InvalidSyscall() const {
+ return Error(ENOSYS);
}
+} // namespace bpf_dsl
} // namespace sandbox
« no previous file with comments | « sandbox/linux/bpf_dsl/policy.h ('k') | sandbox/linux/bpf_dsl/policy_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698