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

Unified Diff: sandbox/win/BUILD.gn

Issue 2679793002: [Windows CFG Test] Added unittest for CFG enabling on process. (Closed)
Patch Set: Fixing 'git cl format' breakage. Created 3 years, 10 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
« no previous file with comments | « no previous file | sandbox/win/OWNERS » ('j') | sandbox/win/OWNERS » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/BUILD.gn
diff --git a/sandbox/win/BUILD.gn b/sandbox/win/BUILD.gn
index ac679f4d439b888763e5b80f0ec1edb3bd44afd1..957a2d21b09293a7d43b86234596e01fe1606beb 100644
--- a/sandbox/win/BUILD.gn
+++ b/sandbox/win/BUILD.gn
@@ -172,6 +172,7 @@ test("sbox_integration_tests") {
sources = [
"src/address_sanitizer_test.cc",
"src/app_container_test.cc",
+ "src/cfi_unittest.cc",
"src/file_policy_test.cc",
"src/handle_closer_test.cc",
"src/handle_inheritance_test.cc",
@@ -197,6 +198,7 @@ test("sbox_integration_tests") {
]
deps = [
+ ":cfi_unittest_exe",
":sandbox",
":sbox_integration_test_hook_dll",
":sbox_integration_test_win_proc",
@@ -207,6 +209,20 @@ test("sbox_integration_tests") {
libs = [ "dxva2.lib" ]
}
+executable("cfi_unittest_exe") {
Will Harris 2017/02/06 22:33:36 hmm I wonder if this test executable should go int
penny 2017/02/07 23:12:56 This is a bit of a mess right now (old conventions
+ sources = [
+ "src/cfi_unittest_exe.cc",
+ ]
+ deps = [
+ "//base",
+ "//build/config/sanitizers:deps",
+ "//build/win:default_exe_manifest",
+ ]
+
+ # cfi_unittest.cc tests require this exe is built with CFG enabled.
+ configs += [ "//build/config/win:win_msvc_cfg" ]
+}
+
loadable_module("sbox_integration_test_hook_dll") {
sources = [
"tests/integration_tests/hooking_dll.cc",
« no previous file with comments | « no previous file | sandbox/win/OWNERS » ('j') | sandbox/win/OWNERS » ('J')

Powered by Google App Engine
This is Rietveld 408576698