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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
58 "tests/test_utils.cc", | 58 "tests/test_utils.cc", |
59 "tests/test_utils.h", | 59 "tests/test_utils.h", |
60 "tests/unit_tests.cc", | 60 "tests/unit_tests.cc", |
61 "tests/unit_tests.h", | 61 "tests/unit_tests.h", |
62 ] | 62 ] |
63 | 63 |
64 deps = [ | 64 deps = [ |
65 "//testing/gtest", | 65 "//testing/gtest", |
66 ] | 66 ] |
67 | 67 |
68 if (use_seccomp_bpf) { | 68 if (use_seccomp_bpf || is_nacl_nonsfi) { |
69 sources += [ | 69 sources += [ |
70 "seccomp-bpf/bpf_tester_compatibility_delegate.h", | 70 "seccomp-bpf/bpf_tester_compatibility_delegate.h", |
71 "seccomp-bpf/bpf_tests.h", | 71 "seccomp-bpf/bpf_tests.h", |
72 "seccomp-bpf/sandbox_bpf_test_runner.cc", | 72 "seccomp-bpf/sandbox_bpf_test_runner.cc", |
73 "seccomp-bpf/sandbox_bpf_test_runner.h", | 73 "seccomp-bpf/sandbox_bpf_test_runner.h", |
74 ] | 74 ] |
75 deps += [ ":seccomp_bpf" ] | 75 deps += [ ":seccomp_bpf" ] |
76 } | 76 } |
77 | 77 |
78 if (use_base_test_suite) { | 78 if (use_base_test_suite) { |
79 deps += [ "//base/test:test_support" ] | 79 deps += [ "//base/test:test_support" ] |
80 defines = [ "SANDBOX_USES_BASE_TEST_SUITE" ] | 80 defines = [ "SANDBOX_USES_BASE_TEST_SUITE" ] |
81 } | 81 } |
82 | |
83 if (is_nacl_nonsfi) { | |
84 sources -= [ | |
85 "tests/test_utils.cc", | |
Mark Seaborn
2015/12/03 19:05:07
These don't seem to be conditionalised in the Gyp
Petr Hosek
2015/12/04 05:57:46
Gyp build is different, it defines and uses custom
| |
86 "tests/test_utils.h", | |
87 ] | |
88 } | |
82 } | 89 } |
83 | 90 |
84 # Sources for sandbox_linux_unittests. | 91 # Sources for sandbox_linux_unittests. |
85 source_set("sandbox_linux_unittests_sources") { | 92 source_set("sandbox_linux_unittests_sources") { |
86 testonly = true | 93 testonly = true |
87 | 94 |
88 sources = [ | 95 sources = [ |
89 "services/proc_util_unittest.cc", | 96 "services/proc_util_unittest.cc", |
90 "services/resource_limits_unittests.cc", | 97 "services/resource_limits_unittests.cc", |
91 "services/scoped_process_unittest.cc", | 98 "services/scoped_process_unittest.cc", |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
455 } | 462 } |
456 } | 463 } |
457 | 464 |
458 test_runner_script("sandbox_linux_unittests__test_runner_script") { | 465 test_runner_script("sandbox_linux_unittests__test_runner_script") { |
459 test_name = "sandbox_linux_unittests" | 466 test_name = "sandbox_linux_unittests" |
460 test_type = "gtest" | 467 test_type = "gtest" |
461 test_suite = "sandbox_linux_unittests" | 468 test_suite = "sandbox_linux_unittests" |
462 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate" | 469 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate" |
463 } | 470 } |
464 } | 471 } |
OLD | NEW |