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 import("//build/config/nacl/config.gni") | 6 import("//build/config/nacl/config.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 ":sandbox_linux_test_utils", | 112 ":sandbox_linux_test_utils", |
113 "//base", | 113 "//base", |
114 "//testing/gtest", | 114 "//testing/gtest", |
115 ] | 115 ] |
116 | 116 |
117 if (use_base_test_suite) { | 117 if (use_base_test_suite) { |
118 deps += [ "//base/test:test_support" ] | 118 deps += [ "//base/test:test_support" ] |
119 defines = [ "SANDBOX_USES_BASE_TEST_SUITE" ] | 119 defines = [ "SANDBOX_USES_BASE_TEST_SUITE" ] |
120 } | 120 } |
121 | 121 |
122 if (is_linux) { | |
123 # Don't use this on Android. | |
124 libs = [ "rt" ] | |
125 } | |
126 | |
127 if (compile_suid_client) { | 122 if (compile_suid_client) { |
128 sources += [ | 123 sources += [ |
129 "suid/client/setuid_sandbox_client_unittest.cc", | 124 "suid/client/setuid_sandbox_client_unittest.cc", |
130 "suid/client/setuid_sandbox_host_unittest.cc", | 125 "suid/client/setuid_sandbox_host_unittest.cc", |
131 ] | 126 ] |
132 } | 127 } |
133 if (use_seccomp_bpf) { | 128 if (use_seccomp_bpf) { |
134 sources += [ | 129 sources += [ |
135 "bpf_dsl/bpf_dsl_unittest.cc", | 130 "bpf_dsl/bpf_dsl_unittest.cc", |
136 "bpf_dsl/codegen_unittest.cc", | 131 "bpf_dsl/codegen_unittest.cc", |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 } | 455 } |
461 } | 456 } |
462 | 457 |
463 test_runner_script("sandbox_linux_unittests__test_runner_script") { | 458 test_runner_script("sandbox_linux_unittests__test_runner_script") { |
464 test_name = "sandbox_linux_unittests" | 459 test_name = "sandbox_linux_unittests" |
465 test_type = "gtest" | 460 test_type = "gtest" |
466 test_suite = "sandbox_linux_unittests" | 461 test_suite = "sandbox_linux_unittests" |
467 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate" | 462 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate" |
468 } | 463 } |
469 } | 464 } |
OLD | NEW |