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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 ] | 60 ] |
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/broker_process_unittest.cc", | |
71 "services/scoped_process_unittest.cc", | 70 "services/scoped_process_unittest.cc", |
72 "services/thread_helpers_unittests.cc", | 71 "services/thread_helpers_unittests.cc", |
73 "services/yama_unittests.cc", | 72 "services/yama_unittests.cc", |
| 73 "syscall_broker/broker_process_unittest.cc", |
74 "tests/main.cc", | 74 "tests/main.cc", |
75 "tests/scoped_temporary_file.cc", | 75 "tests/scoped_temporary_file.cc", |
76 "tests/scoped_temporary_file.h", | 76 "tests/scoped_temporary_file.h", |
77 "tests/scoped_temporary_file_unittest.cc", | 77 "tests/scoped_temporary_file_unittest.cc", |
78 "tests/unit_tests_unittest.cc", | 78 "tests/unit_tests_unittest.cc", |
79 ] | 79 ] |
80 | 80 |
81 deps = [ | 81 deps = [ |
82 ":sandbox", | 82 ":sandbox", |
83 ":sandbox_linux_test_utils", | 83 ":sandbox_linux_test_utils", |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 "-std=gnu99", | 212 "-std=gnu99", |
213 # These files have a suspicious comparison. | 213 # These files have a suspicious comparison. |
214 # TODO fix this and re-enable this warning. | 214 # TODO fix this and re-enable this warning. |
215 "-Wno-sign-compare", | 215 "-Wno-sign-compare", |
216 ] | 216 ] |
217 } | 217 } |
218 } | 218 } |
219 | 219 |
220 component("sandbox_services") { | 220 component("sandbox_services") { |
221 sources = [ | 221 sources = [ |
222 "services/broker_process.cc", | |
223 "services/broker_process.h", | |
224 "services/init_process_reaper.cc", | 222 "services/init_process_reaper.cc", |
225 "services/init_process_reaper.h", | 223 "services/init_process_reaper.h", |
226 "services/scoped_process.cc", | 224 "services/scoped_process.cc", |
227 "services/scoped_process.h", | 225 "services/scoped_process.h", |
228 "services/thread_helpers.cc", | 226 "services/thread_helpers.cc", |
229 "services/thread_helpers.h", | 227 "services/thread_helpers.h", |
230 "services/yama.h", | 228 "services/yama.h", |
231 "services/yama.cc", | 229 "services/yama.cc", |
| 230 "syscall_broker/broker_client.cc", |
| 231 "syscall_broker/broker_client.h", |
| 232 "syscall_broker/broker_common.h", |
| 233 "syscall_broker/broker_host.cc", |
| 234 "syscall_broker/broker_host.h", |
| 235 "syscall_broker/broker_policy.cc", |
| 236 "syscall_broker/broker_policy.h", |
| 237 "syscall_broker/broker_process.cc", |
| 238 "syscall_broker/broker_process.h", |
232 ] | 239 ] |
233 | 240 |
234 defines = [ "SANDBOX_IMPLEMENTATION" ] | 241 defines = [ "SANDBOX_IMPLEMENTATION" ] |
235 | 242 |
236 if (compile_credentials) { | 243 if (compile_credentials) { |
237 sources += [ | 244 sources += [ |
238 "services/credentials.cc", | 245 "services/credentials.cc", |
239 "services/credentials.h", | 246 "services/credentials.h", |
240 ] | 247 ] |
241 # For capabilities.cc. | 248 # For capabilities.cc. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 # 'type': 'none', | 323 # 'type': 'none', |
317 # 'variables': { | 324 # 'variables': { |
318 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 325 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
319 # }, | 326 # }, |
320 # 'dependencies': [ | 327 # 'dependencies': [ |
321 # 'sandbox_linux_jni_unittests', | 328 # 'sandbox_linux_jni_unittests', |
322 # ], | 329 # ], |
323 # 'includes': [ '../../build/apk_test.gypi' ], | 330 # 'includes': [ '../../build/apk_test.gypi' ], |
324 # } | 331 # } |
325 } | 332 } |
OLD | NEW |