| 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', |
| 10 '../base/base.gyp:base', | 11 '../base/base.gyp:base', |
| 11 '../testing/gtest.gyp:gtest', | 12 '../testing/gtest.gyp:gtest', |
| 12 ], | 13 ], |
| 13 'include_dirs': [ | 14 'include_dirs': [ |
| 14 '../..', | 15 '../..', |
| 15 ], | 16 ], |
| 16 'sources': [ | 17 'sources': [ |
| 17 'tests/main.cc', | 18 'tests/main.cc', |
| 18 'tests/test_utils.cc', | |
| 19 'tests/test_utils.h', | |
| 20 'tests/unit_tests.cc', | |
| 21 'tests/unit_tests.h', | |
| 22 'tests/unit_tests_unittest.cc', | 19 'tests/unit_tests_unittest.cc', |
| 23 'services/broker_process_unittest.cc', | 20 'services/broker_process_unittest.cc', |
| 24 'services/scoped_process_unittest.cc', | 21 'services/scoped_process_unittest.cc', |
| 25 'services/thread_helpers_unittests.cc', | 22 'services/thread_helpers_unittests.cc', |
| 26 'services/yama_unittests.cc', | 23 'services/yama_unittests.cc', |
| 27 ], | 24 ], |
| 28 'conditions': [ | 25 'conditions': [ |
| 29 [ 'compile_suid_client==1', { | 26 [ 'compile_suid_client==1', { |
| 30 'sources': [ | 27 'sources': [ |
| 31 'suid/client/setuid_sandbox_client_unittest.cc', | 28 'suid/client/setuid_sandbox_client_unittest.cc', |
| 32 ], | 29 ], |
| 33 }], | 30 }], |
| 34 [ 'use_seccomp_bpf==1', { | 31 [ 'use_seccomp_bpf==1', { |
| 35 'sources': [ | 32 'sources': [ |
| 36 'seccomp-bpf/bpf_tests.h', | 33 'seccomp-bpf/bpf_tests.h', |
| 37 'seccomp-bpf/codegen_unittest.cc', | 34 'seccomp-bpf/codegen_unittest.cc', |
| 38 'seccomp-bpf/errorcode_unittest.cc', | 35 'seccomp-bpf/errorcode_unittest.cc', |
| 39 'seccomp-bpf/sandbox_bpf_unittest.cc', | 36 'seccomp-bpf/sandbox_bpf_unittest.cc', |
| 40 'seccomp-bpf/syscall_iterator_unittest.cc', | 37 'seccomp-bpf/syscall_iterator_unittest.cc', |
| 41 'seccomp-bpf/syscall_unittest.cc', | 38 'seccomp-bpf/syscall_unittest.cc', |
| 42 ], | 39 ], |
| 43 }], | 40 }], |
| 44 [ 'compile_credentials==1', { | 41 [ 'compile_credentials==1', { |
| 45 'sources': [ | 42 'sources': [ |
| 46 'services/credentials_unittest.cc', | 43 'services/credentials_unittest.cc', |
| 47 ], | 44 ], |
| 48 }], | 45 }], |
| 49 ], | 46 ], |
| 50 } | 47 } |
| OLD | NEW |