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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 ] | 79 ] |
80 | 80 |
81 deps = [ | 81 deps = [ |
82 ":sandbox", | 82 ":sandbox", |
83 ":sandbox_linux_test_utils", | 83 ":sandbox_linux_test_utils", |
84 "//base", | 84 "//base", |
85 "//base/test:test_support", | 85 "//base/test:test_support", |
86 "//testing/gtest", | 86 "//testing/gtest", |
87 ] | 87 ] |
88 | 88 |
89 libs = [ "rt" ] | 89 if (is_linux) { |
| 90 # Don't use this on Android. |
| 91 libs = [ "rt" ] |
| 92 } |
90 | 93 |
91 if (compile_suid_client) { | 94 if (compile_suid_client) { |
92 sources += [ | 95 sources += [ |
93 "suid/client/setuid_sandbox_client_unittest.cc", | 96 "suid/client/setuid_sandbox_client_unittest.cc", |
94 ] | 97 ] |
95 } | 98 } |
96 if (use_seccomp_bpf) { | 99 if (use_seccomp_bpf) { |
97 sources += [ | 100 sources += [ |
98 "bpf_dsl/bpf_dsl_unittest.cc", | 101 "bpf_dsl/bpf_dsl_unittest.cc", |
99 "bpf_dsl/cons_unittest.cc", | 102 "bpf_dsl/cons_unittest.cc", |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 # 'type': 'none', | 312 # 'type': 'none', |
310 # 'variables': { | 313 # 'variables': { |
311 # 'test_suite_name': 'sandbox_linux_jni_unittests', | 314 # 'test_suite_name': 'sandbox_linux_jni_unittests', |
312 # }, | 315 # }, |
313 # 'dependencies': [ | 316 # 'dependencies': [ |
314 # 'sandbox_linux_jni_unittests', | 317 # 'sandbox_linux_jni_unittests', |
315 # ], | 318 # ], |
316 # 'includes': [ '../../build/apk_test.gypi' ], | 319 # 'includes': [ '../../build/apk_test.gypi' ], |
317 # } | 320 # } |
318 } | 321 } |
OLD | NEW |