1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # Tests need to be compiled in the same link unit, so we have to list them
6 # in a separate .gypi file.
10 'sandbox_linux_test_utils',
12 '../base/base.gyp:base',
13 '../base/base.gyp:test_support_base',
14 '../testing/gtest.gyp:gtest',
20 'services/proc_util_unittest.cc',
21 'services/scoped_process_unittest.cc',
22 'services/resource_limits_unittests.cc',
23 'services/syscall_wrappers_unittest.cc',
24 'services/thread_helpers_unittests.cc',
25 'services/yama_unittests.cc',
26 'syscall_broker/broker_file_permission_unittest.cc',
27 'syscall_broker/broker_process_unittest.cc',
29 'tests/scoped_temporary_file.cc',
30 'tests/scoped_temporary_file.h',
31 'tests/scoped_temporary_file_unittest.cc',
32 'tests/test_utils_unittest.cc',
33 'tests/unit_tests_unittest.cc',
36 [ 'compile_suid_client==1', {
38 'suid/client/setuid_sandbox_client_unittest.cc',
39 'suid/client/setuid_sandbox_host_unittest.cc',
42 [ 'use_seccomp_bpf==1', {
44 'bpf_dsl/bpf_dsl_unittest.cc',
45 'bpf_dsl/codegen_unittest.cc',
46 'bpf_dsl/cons_unittest.cc',
47 'bpf_dsl/syscall_set_unittest.cc',
48 'integration_tests/bpf_dsl_seccomp_unittest.cc',
49 'integration_tests/seccomp_broker_process_unittest.cc',
50 'seccomp-bpf-helpers/baseline_policy_unittest.cc',
51 'seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc',
52 'seccomp-bpf/bpf_tests_unittest.cc',
53 'seccomp-bpf/errorcode_unittest.cc',
54 'seccomp-bpf/sandbox_bpf_unittest.cc',
55 'seccomp-bpf/syscall_unittest.cc',
58 [ 'compile_credentials==1', {
60 'integration_tests/namespace_unix_domain_socket_unittest.cc',
61 'services/credentials_unittest.cc',
62 'services/namespace_sandbox_unittest.cc',
63 'services/namespace_utils_unittest.cc',