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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 } | 48 } |
49 } | 49 } |
50 | 50 |
51 source_set("sandbox_linux_test_utils") { | 51 source_set("sandbox_linux_test_utils") { |
52 testonly = true | 52 testonly = true |
53 sources = [ | 53 sources = [ |
54 "tests/sandbox_test_runner.cc", | 54 "tests/sandbox_test_runner.cc", |
55 "tests/sandbox_test_runner.h", | 55 "tests/sandbox_test_runner.h", |
56 "tests/sandbox_test_runner_function_pointer.cc", | 56 "tests/sandbox_test_runner_function_pointer.cc", |
57 "tests/sandbox_test_runner_function_pointer.h", | 57 "tests/sandbox_test_runner_function_pointer.h", |
58 "tests/test_utils.cc", | |
59 "tests/test_utils.h", | |
60 "tests/unit_tests.cc", | 58 "tests/unit_tests.cc", |
61 "tests/unit_tests.h", | 59 "tests/unit_tests.h", |
62 ] | 60 ] |
63 | 61 |
64 deps = [ | 62 deps = [ |
65 "//testing/gtest", | 63 "//testing/gtest", |
66 ] | 64 ] |
67 | 65 |
68 if (use_seccomp_bpf) { | 66 if (!is_nacl_nonsfi) { |
| 67 sources += [ |
| 68 "tests/test_utils.cc", |
| 69 "tests/test_utils.h", |
| 70 ] |
| 71 } |
| 72 |
| 73 if (use_seccomp_bpf || is_nacl_nonsfi) { |
69 sources += [ | 74 sources += [ |
70 "seccomp-bpf/bpf_tester_compatibility_delegate.h", | 75 "seccomp-bpf/bpf_tester_compatibility_delegate.h", |
71 "seccomp-bpf/bpf_tests.h", | 76 "seccomp-bpf/bpf_tests.h", |
72 "seccomp-bpf/sandbox_bpf_test_runner.cc", | 77 "seccomp-bpf/sandbox_bpf_test_runner.cc", |
73 "seccomp-bpf/sandbox_bpf_test_runner.h", | 78 "seccomp-bpf/sandbox_bpf_test_runner.h", |
74 ] | 79 ] |
75 deps += [ ":seccomp_bpf" ] | 80 deps += [ ":seccomp_bpf" ] |
76 } | 81 } |
77 | 82 |
78 if (use_base_test_suite) { | 83 if (use_base_test_suite) { |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 } | 460 } |
456 } | 461 } |
457 | 462 |
458 test_runner_script("sandbox_linux_unittests__test_runner_script") { | 463 test_runner_script("sandbox_linux_unittests__test_runner_script") { |
459 test_name = "sandbox_linux_unittests" | 464 test_name = "sandbox_linux_unittests" |
460 test_type = "gtest" | 465 test_type = "gtest" |
461 test_suite = "sandbox_linux_unittests" | 466 test_suite = "sandbox_linux_unittests" |
462 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate" | 467 isolate_file = "//sandbox/sandbox_linux_unittests_android.isolate" |
463 } | 468 } |
464 } | 469 } |
OLD | NEW |