Make //sandbox/* pass gn check (and make it gn checked).
R=kulakowski@chromium.org
Review URL: https://codereview.chromium.org/1590983003 .
diff --git a/.gn b/.gn
index a885969..4946475 100644
--- a/.gn
+++ b/.gn
@@ -32,6 +32,7 @@
"//mojo/*",
"//mojom/*",
"//native_client/*",
+ "//sandbox/*",
"//services/*",
"//shell/*",
"//skia/*",
diff --git a/sandbox/linux/BUILD.gn b/sandbox/linux/BUILD.gn
index 4245afd..d457bad 100644
--- a/sandbox/linux/BUILD.gn
+++ b/sandbox/linux/BUILD.gn
@@ -66,6 +66,7 @@
]
deps = [
+ "//base/third_party/dynamic_annotations",
"//testing/gtest",
]
@@ -110,6 +111,7 @@
":sandbox",
":sandbox_linux_test_utils",
"//base",
+ "//base/third_party/dynamic_annotations",
"//testing/gtest",
]
@@ -128,6 +130,7 @@
"suid/client/setuid_sandbox_client_unittest.cc",
"suid/client/setuid_sandbox_host_unittest.cc",
]
+ deps += [ ":suid_sandbox_client" ]
}
if (use_seccomp_bpf) {
sources += [
@@ -151,7 +154,12 @@
"seccomp-bpf/syscall_unittest.cc",
"seccomp-bpf/trap_unittest.cc",
]
- deps += [ ":bpf_dsl_golden" ]
+ deps += [
+ ":bpf_dsl_golden",
+ ":sandbox_services_headers",
+ ":seccomp_bpf",
+ ":seccomp_bpf_helpers",
+ ]
}
if (compile_credentials) {
sources += [
@@ -159,6 +167,7 @@
"services/credentials_unittest.cc",
"services/namespace_utils_unittest.cc",
]
+ deps += [ ":sandbox_services" ]
if (use_base_test_suite) {
# Tests that use advanced features not available in stock GTest.
@@ -250,6 +259,7 @@
":sandbox_services",
":sandbox_services_headers",
"//base",
+ "//base/third_party/dynamic_annotations",
]
if (is_nacl_nonsfi) {
@@ -281,6 +291,7 @@
deps = [
":sandbox_services",
+ ":sandbox_services_headers",
":seccomp_bpf",
"//base",
]
@@ -357,6 +368,7 @@
deps = [
"//base",
+ "//base/third_party/dynamic_annotations",
]
if (compile_credentials || is_nacl_nonsfi) {