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

Unified Diff: sandbox/win/BUILD.gn

Issue 2679793002: [Windows CFG Test] Added unittest for CFG enabling on process. (Closed)
Patch Set: Code review fixes, part 2. 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/tests/integration_tests/cfi_unittest.cc » ('j') | no next file with comments »
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..958996b8ad3081020efee2c3052c23c864c2f1a9 100644
--- a/sandbox/win/BUILD.gn
+++ b/sandbox/win/BUILD.gn
@@ -191,6 +191,7 @@ test("sbox_integration_tests") {
"tests/common/controller.h",
"tests/common/test_utils.cc",
"tests/common/test_utils.h",
+ "tests/integration_tests/cfi_unittest.cc",
"tests/integration_tests/integration_tests.cc",
"tests/integration_tests/integration_tests_common.h",
"tests/integration_tests/integration_tests_test.cc",
@@ -198,15 +199,33 @@ test("sbox_integration_tests") {
deps = [
":sandbox",
- ":sbox_integration_test_hook_dll",
- ":sbox_integration_test_win_proc",
"//base/test:test_support",
"//testing/gtest",
]
+ data_deps = [
+ ":cfi_unittest_exe",
+ ":sbox_integration_test_hook_dll",
+ ":sbox_integration_test_win_proc",
+ ]
+
libs = [ "dxva2.lib" ]
}
+executable("cfi_unittest_exe") {
+ sources = [
+ "tests/integration_tests/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/tests/integration_tests/cfi_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698