• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5# Tests need to be compiled in the same link unit, so we have to list them
6# in a separate .gypi file.
7{
8  'dependencies': [
9    'sandbox',
10    'sandbox_linux_test_utils',
11    '../base/base.gyp:base',
12    '../base/base.gyp:test_support_base',
13    '../testing/gtest.gyp:gtest',
14  ],
15  'include_dirs': [
16    '../..',
17  ],
18  'sources': [
19    'tests/main.cc',
20    'tests/unit_tests_unittest.cc',
21    'services/broker_process_unittest.cc',
22    'services/scoped_process_unittest.cc',
23    'services/thread_helpers_unittests.cc',
24    'services/yama_unittests.cc',
25  ],
26  'conditions': [
27    [ 'compile_suid_client==1', {
28      'sources': [
29        'suid/client/setuid_sandbox_client_unittest.cc',
30      ],
31    }],
32    [ 'use_seccomp_bpf==1', {
33      'sources': [
34        'seccomp-bpf-helpers/baseline_policy_unittest.cc',
35        'seccomp-bpf/bpf_tests_unittest.cc',
36        'seccomp-bpf/codegen_unittest.cc',
37        'seccomp-bpf/errorcode_unittest.cc',
38        'seccomp-bpf/sandbox_bpf_unittest.cc',
39        'seccomp-bpf/syscall_iterator_unittest.cc',
40        'seccomp-bpf/syscall_unittest.cc',
41      ],
42    }],
43    [ 'compile_credentials==1', {
44      'sources': [
45        'services/credentials_unittest.cc',
46        'services/unix_domain_socket_unittest.cc',
47      ],
48    }],
49  ],
50}
51