Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / sandbox / linux / seccomp-bpf / sandbox_bpf_test_runner.h
index 3d220c8..5d6b374 100644 (file)
@@ -7,10 +7,12 @@
 
 #include "base/macros.h"
 #include "base/memory/scoped_ptr.h"
-#include "sandbox/linux/seccomp-bpf/sandbox_bpf_policy.h"
 #include "sandbox/linux/tests/sandbox_test_runner.h"
 
 namespace sandbox {
+namespace bpf_dsl {
+class Policy;
+}
 
 // To create a SandboxBPFTestRunner object, one needs to implement this
 // interface and pass an instance to the SandboxBPFTestRunner constructor.
@@ -24,7 +26,7 @@ class BPFTesterDelegate {
   // This will instanciate a policy suitable for the test we want to run. It is
   // guaranteed to only be called from the child process that will run the
   // test.
-  virtual scoped_ptr<SandboxBPFPolicy> GetSandboxBPFPolicy() = 0;
+  virtual scoped_ptr<bpf_dsl::Policy> GetSandboxBPFPolicy() = 0;
   // This will be called from a child process with the BPF sandbox turned on.
   virtual void RunTestFunction() = 0;
 
@@ -45,9 +47,9 @@ class SandboxBPFTestRunner : public SandboxTestRunner {
   explicit SandboxBPFTestRunner(BPFTesterDelegate* bpf_tester_delegate);
   virtual ~SandboxBPFTestRunner();
 
-  virtual void Run() OVERRIDE;
+  virtual void Run() override;
 
-  virtual bool ShouldCheckForLeaks() const OVERRIDE;
+  virtual bool ShouldCheckForLeaks() const override;
 
  private:
   scoped_ptr<BPFTesterDelegate> bpf_tester_delegate_;