| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//testing/rules.gni") |
| 6 | 7 |
| 7 declare_args() { | 8 declare_args() { |
| 8 compile_suid_client = is_linux | 9 compile_suid_client = is_linux |
| 9 | 10 |
| 10 compile_credentials = is_linux | 11 compile_credentials = is_linux |
| 11 | 12 |
| 12 compile_seccomp_bpf_demo = | 13 compile_seccomp_bpf_demo = |
| 13 is_linux && (cpu_arch == "x86" || cpu_arch == "x64") | 14 is_linux && (cpu_arch == "x86" || cpu_arch == "x64") |
| 14 } | 15 } |
| 15 | 16 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 "seccomp-bpf/bpf_tester_compatibility_delegate.h", | 57 "seccomp-bpf/bpf_tester_compatibility_delegate.h", |
| 57 "seccomp-bpf/bpf_tests.h", | 58 "seccomp-bpf/bpf_tests.h", |
| 58 "seccomp-bpf/sandbox_bpf_test_runner.cc", | 59 "seccomp-bpf/sandbox_bpf_test_runner.cc", |
| 59 "seccomp-bpf/sandbox_bpf_test_runner.h", | 60 "seccomp-bpf/sandbox_bpf_test_runner.h", |
| 60 ] | 61 ] |
| 61 deps += [ ":seccomp_bpf" ] | 62 deps += [ ":seccomp_bpf" ] |
| 62 } | 63 } |
| 63 } | 64 } |
| 64 | 65 |
| 65 # The main sandboxing test target. | 66 # The main sandboxing test target. |
| 66 test("sandbox_linux_unittests") { | 67 executable("sandbox_linux_unittests") { |
| 68 testonly = true |
| 67 sources = [ | 69 sources = [ |
| 68 "services/scoped_process_unittest.cc", | 70 "services/scoped_process_unittest.cc", |
| 69 "services/syscall_wrappers_unittest.cc", | 71 "services/syscall_wrappers_unittest.cc", |
| 70 "services/thread_helpers_unittests.cc", | 72 "services/thread_helpers_unittests.cc", |
| 71 "services/yama_unittests.cc", | 73 "services/yama_unittests.cc", |
| 72 "syscall_broker/broker_file_permission_unittest.cc", | 74 "syscall_broker/broker_file_permission_unittest.cc", |
| 73 "syscall_broker/broker_process_unittest.cc", | 75 "syscall_broker/broker_process_unittest.cc", |
| 74 "tests/main.cc", | 76 "tests/main.cc", |
| 75 "tests/scoped_temporary_file.cc", | 77 "tests/scoped_temporary_file.cc", |
| 76 "tests/scoped_temporary_file.h", | 78 "tests/scoped_temporary_file.h", |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 # 'type': 'none', | 335 # 'type': 'none', |
| 334 # 'variables': { | 336 # 'variables': { |
| 335 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 337 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
| 336 # }, | 338 # }, |
| 337 # 'dependencies': [ | 339 # 'dependencies': [ |
| 338 # 'sandbox_linux_jni_unittests', | 340 # 'sandbox_linux_jni_unittests', |
| 339 # ], | 341 # ], |
| 340 # 'includes': [ '../../build/apk_test.gypi' ], | 342 # 'includes': [ '../../build/apk_test.gypi' ], |
| 341 # } | 343 # } |
| 342 } | 344 } |
| OLD | NEW |