Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1212)

Unified Diff: sandbox/mac/BUILD.gn

Issue 2869203003: Add the SeatbeltExec classes to facilitate the V2 sandbox. (Closed)
Patch Set: Quiet logging from unit tests Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sandbox/mac/BUILD.gn
diff --git a/sandbox/mac/BUILD.gn b/sandbox/mac/BUILD.gn
index 5174b54f812b016156045871a5013fc34bfcbc48..ed352fe5c8714b3bcb25df8ca88a99e8ba16f5b7 100644
--- a/sandbox/mac/BUILD.gn
+++ b/sandbox/mac/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/mac/mac_sdk.gni")
import("//testing/test.gni")
+import("//third_party/protobuf/proto_library.gni")
component("sandbox") {
sources = [
@@ -33,15 +34,30 @@ component("sandbox") {
]
}
+proto_library("seatbelt_proto") {
Robert Sesek 2017/05/10 15:25:28 Restrict |visibility = [":*"]|.
Greg K 2017/05/11 17:44:14 Done.
+ sources = [
+ "seatbelt.proto",
+ ]
+}
+
component("seatbelt") {
sources = [
"sandbox_compiler.cc",
"sandbox_compiler.h",
"seatbelt.cc",
"seatbelt.h",
+ "seatbelt_exec.cc",
+ "seatbelt_exec.h",
"seatbelt_export.h",
]
libs = [ "sandbox" ]
+ deps = [
+ ":seatbelt_proto",
+ "//base",
+ ]
+ public_deps = [
+ "//third_party/protobuf:protobuf_lite",
+ ]
defines = [ "SEATBELT_IMPLEMENTATION" ]
}
@@ -51,6 +67,7 @@ test("sandbox_mac_unittests") {
"policy_unittest.cc",
"sandbox_mac_compiler_unittest.mm",
"sandbox_mac_compiler_v2_unittest.mm",
+ "sandbox_mac_seatbelt_exec_unittest.cc",
"xpc_message_server_unittest.cc",
]
@@ -62,6 +79,7 @@ test("sandbox_mac_unittests") {
deps = [
":sandbox",
":seatbelt",
+ ":seatbelt_proto",
"//base",
"//base/test:run_all_unittests",
"//testing/gtest",
« no previous file with comments | « no previous file | sandbox/mac/sandbox_mac_compiler_unittest.mm » ('j') | sandbox/mac/sandbox_mac_seatbelt_exec_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698