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