| 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/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 declare_args() { | 8 declare_args() { |
| 9 compile_suid_client = is_linux | 9 compile_suid_client = is_linux |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 if (compile_suid_client) { | 96 if (compile_suid_client) { |
| 97 sources += [ | 97 sources += [ |
| 98 "suid/client/setuid_sandbox_client_unittest.cc", | 98 "suid/client/setuid_sandbox_client_unittest.cc", |
| 99 "suid/client/setuid_sandbox_host_unittest.cc", | 99 "suid/client/setuid_sandbox_host_unittest.cc", |
| 100 ] | 100 ] |
| 101 } | 101 } |
| 102 if (use_seccomp_bpf) { | 102 if (use_seccomp_bpf) { |
| 103 sources += [ | 103 sources += [ |
| 104 "bpf_dsl/bpf_dsl_more_unittest.cc", | |
| 105 "bpf_dsl/bpf_dsl_unittest.cc", | 104 "bpf_dsl/bpf_dsl_unittest.cc", |
| 106 "bpf_dsl/codegen_unittest.cc", | 105 "bpf_dsl/codegen_unittest.cc", |
| 107 "bpf_dsl/cons_unittest.cc", | 106 "bpf_dsl/cons_unittest.cc", |
| 108 "bpf_dsl/syscall_set_unittest.cc", | 107 "bpf_dsl/syscall_set_unittest.cc", |
| 108 "integration_tests/bpf_dsl_seccomp_unittest.cc", |
| 109 "integration_tests/seccomp_broker_process_unittest.cc", |
| 109 "seccomp-bpf-helpers/baseline_policy_unittest.cc", | 110 "seccomp-bpf-helpers/baseline_policy_unittest.cc", |
| 110 "seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc", | 111 "seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc", |
| 111 "seccomp-bpf/bpf_tests_unittest.cc", | 112 "seccomp-bpf/bpf_tests_unittest.cc", |
| 112 "seccomp-bpf/errorcode_unittest.cc", | 113 "seccomp-bpf/errorcode_unittest.cc", |
| 113 "seccomp-bpf/sandbox_bpf_unittest.cc", | 114 "seccomp-bpf/sandbox_bpf_unittest.cc", |
| 114 "seccomp-bpf/syscall_unittest.cc", | 115 "seccomp-bpf/syscall_unittest.cc", |
| 115 ] | 116 ] |
| 116 } | 117 } |
| 117 if (compile_credentials) { | 118 if (compile_credentials) { |
| 118 sources += [ | 119 sources += [ |
| 120 "integration_tests/namespace_unix_domain_socket_unittest.cc", |
| 119 "services/credentials_unittest.cc", | 121 "services/credentials_unittest.cc", |
| 120 "services/namespace_sandbox_unittest.cc", | 122 "services/namespace_sandbox_unittest.cc", |
| 121 "services/namespace_utils_unittest.cc", | 123 "services/namespace_utils_unittest.cc", |
| 122 "services/proc_util_unittest.cc", | 124 "services/proc_util_unittest.cc", |
| 123 "services/unix_domain_socket_unittest.cc", | |
| 124 ] | 125 ] |
| 125 } | 126 } |
| 126 } | 127 } |
| 127 | 128 |
| 128 # TODO(GYP) Android version of this test. | 129 # TODO(GYP) Android version of this test. |
| 129 # { | 130 # { |
| 130 # # This target is the shared library used by Android APK (i.e. | 131 # # This target is the shared library used by Android APK (i.e. |
| 131 # # JNI-friendly) tests. | 132 # # JNI-friendly) tests. |
| 132 # "target_name": "sandbox_linux_jni_unittests", | 133 # "target_name": "sandbox_linux_jni_unittests", |
| 133 # "includes": [ | 134 # "includes": [ |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 configs += [ "//build/config/linux:libcap" ] | 272 configs += [ "//build/config/linux:libcap" ] |
| 272 } | 273 } |
| 273 | 274 |
| 274 deps = [ | 275 deps = [ |
| 275 "//base", | 276 "//base", |
| 276 ] | 277 ] |
| 277 } | 278 } |
| 278 | 279 |
| 279 source_set("sandbox_services_headers") { | 280 source_set("sandbox_services_headers") { |
| 280 sources = [ | 281 sources = [ |
| 281 "services/android_arm_ucontext.h", | 282 "system_headers/android_arm_ucontext.h", |
| 282 "services/android_arm64_ucontext.h", | 283 "system_headers/android_arm64_ucontext.h", |
| 283 "services/android_futex.h", | 284 "system_headers/android_futex.h", |
| 284 "services/android_ucontext.h", | 285 "system_headers/android_ucontext.h", |
| 285 "services/android_i386_ucontext.h", | 286 "system_headers/android_i386_ucontext.h", |
| 286 "services/arm_linux_syscalls.h", | 287 "system_headers/arm_linux_syscalls.h", |
| 287 "services/arm64_linux_syscalls.h", | 288 "system_headers/arm64_linux_syscalls.h", |
| 288 "services/linux_syscalls.h", | 289 "system_headers/linux_syscalls.h", |
| 289 "services/x86_32_linux_syscalls.h", | 290 "system_headers/x86_32_linux_syscalls.h", |
| 290 "services/x86_64_linux_syscalls.h", | 291 "system_headers/x86_64_linux_syscalls.h", |
| 291 ] | 292 ] |
| 292 } | 293 } |
| 293 | 294 |
| 294 # We make this its own target so that it does not interfere with our tests. | 295 # We make this its own target so that it does not interfere with our tests. |
| 295 source_set("libc_urandom_override") { | 296 source_set("libc_urandom_override") { |
| 296 sources = [ | 297 sources = [ |
| 297 "services/libc_urandom_override.cc", | 298 "services/libc_urandom_override.cc", |
| 298 "services/libc_urandom_override.h", | 299 "services/libc_urandom_override.h", |
| 299 ] | 300 ] |
| 300 deps = [ | 301 deps = [ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 # 'type': 'none', | 347 # 'type': 'none', |
| 347 # 'variables': { | 348 # 'variables': { |
| 348 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 349 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
| 349 # }, | 350 # }, |
| 350 # 'dependencies': [ | 351 # 'dependencies': [ |
| 351 # 'sandbox_linux_jni_unittests', | 352 # 'sandbox_linux_jni_unittests', |
| 352 # ], | 353 # ], |
| 353 # 'includes': [ '../../build/apk_test.gypi' ], | 354 # 'includes': [ '../../build/apk_test.gypi' ], |
| 354 # } | 355 # } |
| 355 } | 356 } |
| OLD | NEW |