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

Unified Diff: sandbox/linux/BUILD.gn

Issue 1497543006: GN: Build nacl_helper_nonsfi unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years 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 | « components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/BUILD.gn
diff --git a/sandbox/linux/BUILD.gn b/sandbox/linux/BUILD.gn
index 516342513bccb9387c5235f02a728a8e48dd3e41..8396a661add07b27cbaaf324162db3bce4ae5651 100644
--- a/sandbox/linux/BUILD.gn
+++ b/sandbox/linux/BUILD.gn
@@ -55,8 +55,6 @@ source_set("sandbox_linux_test_utils") {
"tests/sandbox_test_runner.h",
"tests/sandbox_test_runner_function_pointer.cc",
"tests/sandbox_test_runner_function_pointer.h",
- "tests/test_utils.cc",
- "tests/test_utils.h",
"tests/unit_tests.cc",
"tests/unit_tests.h",
]
@@ -65,7 +63,14 @@ source_set("sandbox_linux_test_utils") {
"//testing/gtest",
]
- if (use_seccomp_bpf) {
+ if (!is_nacl_nonsfi) {
+ sources += [
+ "tests/test_utils.cc",
+ "tests/test_utils.h",
+ ]
+ }
+
+ if (use_seccomp_bpf || is_nacl_nonsfi) {
sources += [
"seccomp-bpf/bpf_tester_compatibility_delegate.h",
"seccomp-bpf/bpf_tests.h",
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698