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

Unified Diff: sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc

Issue 10635006: Seccomp BPF: initial structure for unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Have a global sandbox_linux_unittests that always builds Created 8 years, 6 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/sandbox_bpf_unittest.cc
diff --git a/ui/base/native_theme/native_theme_win_unittest.cc b/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
similarity index 54%
copy from ui/base/native_theme/native_theme_win_unittest.cc
copy to sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
index b711921355e748da0e9daf13d31700b993599a99..ead6c4e387853f02330c6c41cd472a5da311f6af 100644
--- a/ui/base/native_theme/native_theme_win_unittest.cc
+++ b/sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc
@@ -2,14 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ui/base/native_theme/native_theme_win.h"
-
+#include "sandbox/linux/seccomp-bpf/sandbox_bpf.h"
+#include "sandbox/linux/seccomp-bpf/verifier.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace ui {
-
-TEST(NativeThemeTest, Init) {
- ASSERT_TRUE(NativeThemeWin::instance() != NULL);
+TEST(SandboxBpf, CallSupports) {
+ playground2::Sandbox::supportsSeccompSandbox(-1);
Markus (顧孟勤) 2012/06/21 21:01:07 Maybe add a comment that we are not actually check
}
-
-} // namespace ui
« no previous file with comments | « build/all.gyp ('k') | sandbox/linux/tests/unit_tests.cc » ('j') | sandbox/sandbox_linux.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698