OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 compile_suid_client = is_linux | 8 compile_suid_client = is_linux |
9 | 9 |
10 compile_credentials = is_linux | 10 compile_credentials = is_linux |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 deps += [ | 61 deps += [ |
62 ":seccomp_bpf", | 62 ":seccomp_bpf", |
63 ] | 63 ] |
64 } | 64 } |
65 } | 65 } |
66 | 66 |
67 # The main sandboxing test target. | 67 # The main sandboxing test target. |
68 test("sandbox_linux_unittests") { | 68 test("sandbox_linux_unittests") { |
69 sources = [ | 69 sources = [ |
70 "services/scoped_process_unittest.cc", | 70 "services/scoped_process_unittest.cc", |
| 71 "services/syscall_wrappers_unittest.cc", |
71 "services/thread_helpers_unittests.cc", | 72 "services/thread_helpers_unittests.cc", |
72 "services/yama_unittests.cc", | 73 "services/yama_unittests.cc", |
73 "syscall_broker/broker_process_unittest.cc", | 74 "syscall_broker/broker_process_unittest.cc", |
74 "tests/main.cc", | 75 "tests/main.cc", |
75 "tests/scoped_temporary_file.cc", | 76 "tests/scoped_temporary_file.cc", |
76 "tests/scoped_temporary_file.h", | 77 "tests/scoped_temporary_file.h", |
77 "tests/scoped_temporary_file_unittest.cc", | 78 "tests/scoped_temporary_file_unittest.cc", |
| 79 "tests/test_utils_unittest.cc", |
78 "tests/unit_tests_unittest.cc", | 80 "tests/unit_tests_unittest.cc", |
79 ] | 81 ] |
80 | 82 |
81 deps = [ | 83 deps = [ |
82 ":sandbox", | 84 ":sandbox", |
83 ":sandbox_linux_test_utils", | 85 ":sandbox_linux_test_utils", |
84 "//base", | 86 "//base", |
85 "//base/test:test_support", | 87 "//base/test:test_support", |
86 "//testing/gtest", | 88 "//testing/gtest", |
87 ] | 89 ] |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 "bpf_dsl/bpf_dsl_forward.h", | 145 "bpf_dsl/bpf_dsl_forward.h", |
144 "bpf_dsl/bpf_dsl_impl.h", | 146 "bpf_dsl/bpf_dsl_impl.h", |
145 "bpf_dsl/cons.h", | 147 "bpf_dsl/cons.h", |
146 "bpf_dsl/dump_bpf.cc", | 148 "bpf_dsl/dump_bpf.cc", |
147 "bpf_dsl/dump_bpf.h", | 149 "bpf_dsl/dump_bpf.h", |
148 "bpf_dsl/policy.cc", | 150 "bpf_dsl/policy.cc", |
149 "bpf_dsl/policy.h", | 151 "bpf_dsl/policy.h", |
150 "bpf_dsl/policy_compiler.cc", | 152 "bpf_dsl/policy_compiler.cc", |
151 "bpf_dsl/policy_compiler.h", | 153 "bpf_dsl/policy_compiler.h", |
152 "bpf_dsl/trap_registry.h", | 154 "bpf_dsl/trap_registry.h", |
153 "seccomp-bpf/basicblock.cc", | |
154 "seccomp-bpf/basicblock.h", | |
155 "seccomp-bpf/codegen.cc", | 155 "seccomp-bpf/codegen.cc", |
156 "seccomp-bpf/codegen.h", | 156 "seccomp-bpf/codegen.h", |
157 "seccomp-bpf/die.cc", | 157 "seccomp-bpf/die.cc", |
158 "seccomp-bpf/die.h", | 158 "seccomp-bpf/die.h", |
159 "seccomp-bpf/errorcode.cc", | 159 "seccomp-bpf/errorcode.cc", |
160 "seccomp-bpf/errorcode.h", | 160 "seccomp-bpf/errorcode.h", |
161 "seccomp-bpf/instruction.h", | |
162 "seccomp-bpf/linux_seccomp.h", | 161 "seccomp-bpf/linux_seccomp.h", |
163 "seccomp-bpf/sandbox_bpf.cc", | 162 "seccomp-bpf/sandbox_bpf.cc", |
164 "seccomp-bpf/sandbox_bpf.h", | 163 "seccomp-bpf/sandbox_bpf.h", |
165 "seccomp-bpf/syscall.cc", | 164 "seccomp-bpf/syscall.cc", |
166 "seccomp-bpf/syscall.h", | 165 "seccomp-bpf/syscall.h", |
167 "seccomp-bpf/syscall_iterator.cc", | 166 "seccomp-bpf/syscall_iterator.cc", |
168 "seccomp-bpf/syscall_iterator.h", | 167 "seccomp-bpf/syscall_iterator.h", |
169 "seccomp-bpf/trap.cc", | 168 "seccomp-bpf/trap.cc", |
170 "seccomp-bpf/trap.h", | 169 "seccomp-bpf/trap.h", |
171 "seccomp-bpf/verifier.cc", | 170 "seccomp-bpf/verifier.cc", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 ] | 217 ] |
219 } | 218 } |
220 } | 219 } |
221 | 220 |
222 component("sandbox_services") { | 221 component("sandbox_services") { |
223 sources = [ | 222 sources = [ |
224 "services/init_process_reaper.cc", | 223 "services/init_process_reaper.cc", |
225 "services/init_process_reaper.h", | 224 "services/init_process_reaper.h", |
226 "services/scoped_process.cc", | 225 "services/scoped_process.cc", |
227 "services/scoped_process.h", | 226 "services/scoped_process.h", |
| 227 "services/syscall_wrappers.cc", |
| 228 "services/syscall_wrappers.h", |
228 "services/thread_helpers.cc", | 229 "services/thread_helpers.cc", |
229 "services/thread_helpers.h", | 230 "services/thread_helpers.h", |
230 "services/yama.h", | 231 "services/yama.h", |
231 "services/yama.cc", | 232 "services/yama.cc", |
232 "syscall_broker/broker_channel.cc", | 233 "syscall_broker/broker_channel.cc", |
233 "syscall_broker/broker_channel.h", | 234 "syscall_broker/broker_channel.h", |
234 "syscall_broker/broker_client.cc", | 235 "syscall_broker/broker_client.cc", |
235 "syscall_broker/broker_client.h", | 236 "syscall_broker/broker_client.h", |
236 "syscall_broker/broker_common.h", | 237 "syscall_broker/broker_common.h", |
237 "syscall_broker/broker_host.cc", | 238 "syscall_broker/broker_host.cc", |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 # 'type': 'none', | 328 # 'type': 'none', |
328 # 'variables': { | 329 # 'variables': { |
329 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 330 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
330 # }, | 331 # }, |
331 # 'dependencies': [ | 332 # 'dependencies': [ |
332 # 'sandbox_linux_jni_unittests', | 333 # 'sandbox_linux_jni_unittests', |
333 # ], | 334 # ], |
334 # 'includes': [ '../../build/apk_test.gypi' ], | 335 # 'includes': [ '../../build/apk_test.gypi' ], |
335 # } | 336 # } |
336 } | 337 } |
OLD | NEW |