| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 "seccomp-bpf/syscall_unittest.cc", | 119 "seccomp-bpf/syscall_unittest.cc", |
| 120 ] | 120 ] |
| 121 } | 121 } |
| 122 if (compile_credentials) { | 122 if (compile_credentials) { |
| 123 sources += [ | 123 sources += [ |
| 124 "integration_tests/namespace_unix_domain_socket_unittest.cc", | 124 "integration_tests/namespace_unix_domain_socket_unittest.cc", |
| 125 "services/credentials_unittest.cc", | 125 "services/credentials_unittest.cc", |
| 126 "services/namespace_sandbox_unittest.cc", | 126 "services/namespace_sandbox_unittest.cc", |
| 127 "services/namespace_utils_unittest.cc", | 127 "services/namespace_utils_unittest.cc", |
| 128 ] | 128 ] |
| 129 |
| 130 # For credentials_unittest.cc |
| 131 configs += [ "//build/config/linux:libcap" ] |
| 129 } | 132 } |
| 130 } | 133 } |
| 131 | 134 |
| 132 # The main sandboxing test target. | 135 # The main sandboxing test target. |
| 133 test("sandbox_linux_unittests") { | 136 test("sandbox_linux_unittests") { |
| 134 deps = [ | 137 deps = [ |
| 135 ":sandbox_linux_unittests_sources", | 138 ":sandbox_linux_unittests_sources", |
| 136 ] | 139 ] |
| 137 } | 140 } |
| 138 | 141 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 "syscall_broker/broker_host.cc", | 261 "syscall_broker/broker_host.cc", |
| 259 "syscall_broker/broker_host.h", | 262 "syscall_broker/broker_host.h", |
| 260 "syscall_broker/broker_policy.cc", | 263 "syscall_broker/broker_policy.cc", |
| 261 "syscall_broker/broker_policy.h", | 264 "syscall_broker/broker_policy.h", |
| 262 "syscall_broker/broker_process.cc", | 265 "syscall_broker/broker_process.cc", |
| 263 "syscall_broker/broker_process.h", | 266 "syscall_broker/broker_process.h", |
| 264 ] | 267 ] |
| 265 | 268 |
| 266 defines = [ "SANDBOX_IMPLEMENTATION" ] | 269 defines = [ "SANDBOX_IMPLEMENTATION" ] |
| 267 | 270 |
| 271 deps = [ |
| 272 "//base", |
| 273 ] |
| 274 |
| 268 if (compile_credentials) { | 275 if (compile_credentials) { |
| 269 sources += [ | 276 sources += [ |
| 270 "services/credentials.cc", | 277 "services/credentials.cc", |
| 271 "services/credentials.h", | 278 "services/credentials.h", |
| 272 "services/namespace_sandbox.cc", | 279 "services/namespace_sandbox.cc", |
| 273 "services/namespace_sandbox.h", | 280 "services/namespace_sandbox.h", |
| 274 "services/namespace_utils.cc", | 281 "services/namespace_utils.cc", |
| 275 "services/namespace_utils.h", | 282 "services/namespace_utils.h", |
| 276 ] | 283 ] |
| 277 | 284 |
| 278 # For capabilities.cc. | 285 deps += [ ":sandbox_services_headers" ] |
| 279 configs += [ "//build/config/linux:libcap" ] | |
| 280 } | 286 } |
| 281 | |
| 282 deps = [ | |
| 283 "//base", | |
| 284 ] | |
| 285 } | 287 } |
| 286 | 288 |
| 287 source_set("sandbox_services_headers") { | 289 source_set("sandbox_services_headers") { |
| 288 sources = [ | 290 sources = [ |
| 289 "system_headers/android_arm64_ucontext.h", | 291 "system_headers/android_arm64_ucontext.h", |
| 290 "system_headers/android_arm_ucontext.h", | 292 "system_headers/android_arm_ucontext.h", |
| 291 "system_headers/android_futex.h", | 293 "system_headers/android_futex.h", |
| 292 "system_headers/android_i386_ucontext.h", | 294 "system_headers/android_i386_ucontext.h", |
| 293 "system_headers/android_ucontext.h", | 295 "system_headers/android_ucontext.h", |
| 294 "system_headers/arm64_linux_syscalls.h", | 296 "system_headers/arm64_linux_syscalls.h", |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 # 'type': 'none', | 357 # 'type': 'none', |
| 356 # 'variables': { | 358 # 'variables': { |
| 357 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 359 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
| 358 # }, | 360 # }, |
| 359 # 'dependencies': [ | 361 # 'dependencies': [ |
| 360 # 'sandbox_linux_jni_unittests', | 362 # 'sandbox_linux_jni_unittests', |
| 361 # ], | 363 # ], |
| 362 # 'includes': [ '../../build/apk_test.gypi' ], | 364 # 'includes': [ '../../build/apk_test.gypi' ], |
| 363 # } | 365 # } |
| 364 } | 366 } |
| OLD | NEW |