| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 "//base/test:test_support", | 87 "//base/test:test_support", |
| 88 "//testing/gtest", | 88 "//testing/gtest", |
| 89 ] | 89 ] |
| 90 | 90 |
| 91 if (is_linux) { | 91 if (is_linux) { |
| 92 # Don't use this on Android. | 92 # Don't use this on Android. |
| 93 libs = [ "rt" ] | 93 libs = [ "rt" ] |
| 94 } | 94 } |
| 95 | 95 |
| 96 if (compile_suid_client) { | 96 if (compile_suid_client) { |
| 97 sources += [ "suid/client/setuid_sandbox_client_unittest.cc" ] | 97 sources += [ |
| 98 "suid/client/setuid_sandbox_client_unittest.cc", |
| 99 "suid/client/setuid_sandbox_host_unittest.cc", |
| 100 ] |
| 98 } | 101 } |
| 99 if (use_seccomp_bpf) { | 102 if (use_seccomp_bpf) { |
| 100 sources += [ | 103 sources += [ |
| 101 "bpf_dsl/bpf_dsl_more_unittest.cc", | 104 "bpf_dsl/bpf_dsl_more_unittest.cc", |
| 102 "bpf_dsl/bpf_dsl_unittest.cc", | 105 "bpf_dsl/bpf_dsl_unittest.cc", |
| 103 "bpf_dsl/cons_unittest.cc", | 106 "bpf_dsl/cons_unittest.cc", |
| 104 "seccomp-bpf-helpers/baseline_policy_unittest.cc", | 107 "seccomp-bpf-helpers/baseline_policy_unittest.cc", |
| 105 "seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc", | 108 "seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc", |
| 106 "seccomp-bpf/bpf_tests_unittest.cc", | 109 "seccomp-bpf/bpf_tests_unittest.cc", |
| 107 "seccomp-bpf/codegen_unittest.cc", | 110 "seccomp-bpf/codegen_unittest.cc", |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 ] | 302 ] |
| 300 } | 303 } |
| 301 | 304 |
| 302 if (compile_suid_client) { | 305 if (compile_suid_client) { |
| 303 component("suid_sandbox_client") { | 306 component("suid_sandbox_client") { |
| 304 sources = [ | 307 sources = [ |
| 305 "suid/common/sandbox.h", | 308 "suid/common/sandbox.h", |
| 306 "suid/common/suid_unsafe_environment_variables.h", | 309 "suid/common/suid_unsafe_environment_variables.h", |
| 307 "suid/client/setuid_sandbox_client.cc", | 310 "suid/client/setuid_sandbox_client.cc", |
| 308 "suid/client/setuid_sandbox_client.h", | 311 "suid/client/setuid_sandbox_client.h", |
| 312 "suid/client/setuid_sandbox_host.cc", |
| 313 "suid/client/setuid_sandbox_host.h", |
| 309 ] | 314 ] |
| 310 defines = [ "SANDBOX_IMPLEMENTATION" ] | 315 defines = [ "SANDBOX_IMPLEMENTATION" ] |
| 311 | 316 |
| 312 deps = [ | 317 deps = [ |
| 313 ":sandbox_services", | 318 ":sandbox_services", |
| 314 "//base", | 319 "//base", |
| 315 ] | 320 ] |
| 316 } | 321 } |
| 317 } | 322 } |
| 318 | 323 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 341 # 'type': 'none', | 346 # 'type': 'none', |
| 342 # 'variables': { | 347 # 'variables': { |
| 343 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 348 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
| 344 # }, | 349 # }, |
| 345 # 'dependencies': [ | 350 # 'dependencies': [ |
| 346 # 'sandbox_linux_jni_unittests', | 351 # 'sandbox_linux_jni_unittests', |
| 347 # ], | 352 # ], |
| 348 # 'includes': [ '../../build/apk_test.gypi' ], | 353 # 'includes': [ '../../build/apk_test.gypi' ], |
| 349 # } | 354 # } |
| 350 } | 355 } |
| OLD | NEW |