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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 "seccomp-bpf/codegen_unittest.cc", | 106 "seccomp-bpf/codegen_unittest.cc", |
107 "seccomp-bpf/errorcode_unittest.cc", | 107 "seccomp-bpf/errorcode_unittest.cc", |
108 "seccomp-bpf/sandbox_bpf_unittest.cc", | 108 "seccomp-bpf/sandbox_bpf_unittest.cc", |
109 "seccomp-bpf/syscall_iterator_unittest.cc", | 109 "seccomp-bpf/syscall_iterator_unittest.cc", |
110 "seccomp-bpf/syscall_unittest.cc", | 110 "seccomp-bpf/syscall_unittest.cc", |
111 ] | 111 ] |
112 } | 112 } |
113 if (compile_credentials) { | 113 if (compile_credentials) { |
114 sources += [ | 114 sources += [ |
115 "services/credentials_unittest.cc", | 115 "services/credentials_unittest.cc", |
| 116 "services/namespace_utils_unittest.cc", |
116 "services/proc_util_unittest.cc", | 117 "services/proc_util_unittest.cc", |
117 "services/unix_domain_socket_unittest.cc", | 118 "services/unix_domain_socket_unittest.cc", |
118 ] | 119 ] |
119 } | 120 } |
120 } | 121 } |
121 | 122 |
122 # TODO(GYP) Android version of this test. | 123 # TODO(GYP) Android version of this test. |
123 # { | 124 # { |
124 # # This target is the shared library used by Android APK (i.e. | 125 # # This target is the shared library used by Android APK (i.e. |
125 # # JNI-friendly) tests. | 126 # # JNI-friendly) tests. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 "syscall_broker/broker_process.cc", | 246 "syscall_broker/broker_process.cc", |
246 "syscall_broker/broker_process.h", | 247 "syscall_broker/broker_process.h", |
247 ] | 248 ] |
248 | 249 |
249 defines = [ "SANDBOX_IMPLEMENTATION" ] | 250 defines = [ "SANDBOX_IMPLEMENTATION" ] |
250 | 251 |
251 if (compile_credentials) { | 252 if (compile_credentials) { |
252 sources += [ | 253 sources += [ |
253 "services/credentials.cc", | 254 "services/credentials.cc", |
254 "services/credentials.h", | 255 "services/credentials.h", |
| 256 "services/namespace_utils.cc", |
| 257 "services/namespace_utils.h", |
255 "services/proc_util.cc", | 258 "services/proc_util.cc", |
256 "services/proc_util.h", | 259 "services/proc_util.h", |
257 ] | 260 ] |
258 | 261 |
259 # For capabilities.cc. | 262 # For capabilities.cc. |
260 configs += [ "//build/config/linux:libcap" ] | 263 configs += [ "//build/config/linux:libcap" ] |
261 } | 264 } |
262 | 265 |
263 deps = [ | 266 deps = [ |
264 "//base", | 267 "//base", |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 # 'type': 'none', | 336 # 'type': 'none', |
334 # 'variables': { | 337 # 'variables': { |
335 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 338 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
336 # }, | 339 # }, |
337 # 'dependencies': [ | 340 # 'dependencies': [ |
338 # 'sandbox_linux_jni_unittests', | 341 # 'sandbox_linux_jni_unittests', |
339 # ], | 342 # ], |
340 # 'includes': [ '../../build/apk_test.gypi' ], | 343 # 'includes': [ '../../build/apk_test.gypi' ], |
341 # } | 344 # } |
342 } | 345 } |
OLD | NEW |