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

Unified Diff: sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.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
Index: sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
diff --git a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
index c865e7ec4799b2bc1d523843c181c43bef78d6a7..b57ad0106eabbac7671835b19a19e999fd452026 100644
--- a/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
+++ b/sandbox/linux/seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc
@@ -17,6 +17,7 @@
#include "base/time/time.h"
#include "build/build_config.h"
#include "sandbox/linux/bpf_dsl/bpf_dsl.h"
+#include "sandbox/linux/bpf_dsl/policy.h"
#include "sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.h"
#include "sandbox/linux/seccomp-bpf/bpf_tests.h"
#include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
@@ -37,9 +38,8 @@ namespace {
using sandbox::bpf_dsl::Allow;
using sandbox::bpf_dsl::ResultExpr;
-using sandbox::bpf_dsl::SandboxBPFDSLPolicy;
-class RestrictClockIdPolicy : public SandboxBPFDSLPolicy {
+class RestrictClockIdPolicy : public bpf_dsl::Policy {
public:
RestrictClockIdPolicy() {}
virtual ~RestrictClockIdPolicy() {}
@@ -91,10 +91,8 @@ class ClockSystemTesterDelegate : public sandbox::BPFTesterDelegate {
: is_running_on_chromeos_(base::SysInfo::IsRunningOnChromeOS()) {}
virtual ~ClockSystemTesterDelegate() {}
- virtual scoped_ptr<sandbox::bpf_dsl::SandboxBPFDSLPolicy>
- GetSandboxBPFPolicy() override {
- return scoped_ptr<sandbox::bpf_dsl::SandboxBPFDSLPolicy>(
- new RestrictClockIdPolicy());
+ virtual scoped_ptr<sandbox::bpf_dsl::Policy> GetSandboxBPFPolicy() override {
+ return scoped_ptr<sandbox::bpf_dsl::Policy>(new RestrictClockIdPolicy());
}
virtual void RunTestFunction() override {
if (is_running_on_chromeos_) {
@@ -144,7 +142,7 @@ BPF_DEATH_TEST_C(ParameterRestrictions,
}
#endif // !defined(OS_ANDROID)
-class RestrictSchedPolicy : public SandboxBPFDSLPolicy {
+class RestrictSchedPolicy : public bpf_dsl::Policy {
public:
RestrictSchedPolicy() {}
virtual ~RestrictSchedPolicy() {}

Powered by Google App Engine
This is Rietveld 408576698