Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / sandbox / linux / sandbox_linux_test_sources.gypi
blob219b4e543639fd380bc5939160a0c04aa3f1b42a
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.
8   'dependencies': [
9     'sandbox',
10     'sandbox_linux_test_utils',
11     'sandbox_services',
12     '../base/base.gyp:base',
13     '../base/base.gyp:test_support_base',
14     '../testing/gtest.gyp:gtest',
15   ],
16   'include_dirs': [
17     '../..',
18   ],
19   'sources': [
20     'services/scoped_process_unittest.cc',
21     'services/thread_helpers_unittests.cc',
22     'services/yama_unittests.cc',
23     'syscall_broker/broker_process_unittest.cc',
24     'tests/main.cc',
25     'tests/scoped_temporary_file.cc',
26     'tests/scoped_temporary_file.h',
27     'tests/scoped_temporary_file_unittest.cc',
28     'tests/unit_tests_unittest.cc',
29   ],
30   'conditions': [
31     [ 'compile_suid_client==1', {
32       'sources': [
33         'suid/client/setuid_sandbox_client_unittest.cc',
34       ],
35     }],
36     [ 'use_seccomp_bpf==1', {
37       'sources': [
38         'bpf_dsl/bpf_dsl_more_unittest.cc',
39         'bpf_dsl/bpf_dsl_unittest.cc',
40         'bpf_dsl/cons_unittest.cc',
41         'seccomp-bpf-helpers/baseline_policy_unittest.cc',
42         'seccomp-bpf-helpers/syscall_parameters_restrictions_unittests.cc',
43         'seccomp-bpf/bpf_tests_unittest.cc',
44         'seccomp-bpf/codegen_unittest.cc',
45         'seccomp-bpf/errorcode_unittest.cc',
46         'seccomp-bpf/syscall_iterator_unittest.cc',
47         'seccomp-bpf/syscall_unittest.cc',
48       ],
49     }],
50     [ 'compile_credentials==1', {
51       'sources': [
52         'services/credentials_unittest.cc',
53         'services/unix_domain_socket_unittest.cc',
54       ],
55     }],
56   ],