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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | sandbox/win/OWNERS » ('j') | sandbox/win/OWNERS » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//testing/test.gni") 5 import("//testing/test.gni")
6 6
7 # This needs to be a static library rather than a sources set because small 7 # This needs to be a static library rather than a sources set because small
8 # portions of this are used in some contexts (like chrome_elf), and it 8 # portions of this are used in some contexts (like chrome_elf), and it
9 # doesnn't seem to dead-code strip very well. This saves 12K on chrome_elf.dll, 9 # doesnn't seem to dead-code strip very well. This saves 12K on chrome_elf.dll,
10 # over a source set, for example. 10 # over a source set, for example.
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 deps = [ 165 deps = [
166 "//base", 166 "//base",
167 "//base:base_static", 167 "//base:base_static",
168 ] 168 ]
169 } 169 }
170 170
171 test("sbox_integration_tests") { 171 test("sbox_integration_tests") {
172 sources = [ 172 sources = [
173 "src/address_sanitizer_test.cc", 173 "src/address_sanitizer_test.cc",
174 "src/app_container_test.cc", 174 "src/app_container_test.cc",
175 "src/cfi_unittest.cc",
175 "src/file_policy_test.cc", 176 "src/file_policy_test.cc",
176 "src/handle_closer_test.cc", 177 "src/handle_closer_test.cc",
177 "src/handle_inheritance_test.cc", 178 "src/handle_inheritance_test.cc",
178 "src/integrity_level_test.cc", 179 "src/integrity_level_test.cc",
179 "src/ipc_ping_test.cc", 180 "src/ipc_ping_test.cc",
180 "src/lpc_policy_test.cc", 181 "src/lpc_policy_test.cc",
181 "src/named_pipe_policy_test.cc", 182 "src/named_pipe_policy_test.cc",
182 "src/policy_target_test.cc", 183 "src/policy_target_test.cc",
183 "src/process_mitigations_test.cc", 184 "src/process_mitigations_test.cc",
184 "src/process_policy_test.cc", 185 "src/process_policy_test.cc",
185 "src/registry_policy_test.cc", 186 "src/registry_policy_test.cc",
186 "src/restricted_token_test.cc", 187 "src/restricted_token_test.cc",
187 "src/sync_policy_test.cc", 188 "src/sync_policy_test.cc",
188 "src/sync_policy_test.h", 189 "src/sync_policy_test.h",
189 "src/unload_dll_test.cc", 190 "src/unload_dll_test.cc",
190 "tests/common/controller.cc", 191 "tests/common/controller.cc",
191 "tests/common/controller.h", 192 "tests/common/controller.h",
192 "tests/common/test_utils.cc", 193 "tests/common/test_utils.cc",
193 "tests/common/test_utils.h", 194 "tests/common/test_utils.h",
194 "tests/integration_tests/integration_tests.cc", 195 "tests/integration_tests/integration_tests.cc",
195 "tests/integration_tests/integration_tests_common.h", 196 "tests/integration_tests/integration_tests_common.h",
196 "tests/integration_tests/integration_tests_test.cc", 197 "tests/integration_tests/integration_tests_test.cc",
197 ] 198 ]
198 199
199 deps = [ 200 deps = [
201 ":cfi_unittest_exe",
200 ":sandbox", 202 ":sandbox",
201 ":sbox_integration_test_hook_dll", 203 ":sbox_integration_test_hook_dll",
202 ":sbox_integration_test_win_proc", 204 ":sbox_integration_test_win_proc",
203 "//base/test:test_support", 205 "//base/test:test_support",
204 "//testing/gtest", 206 "//testing/gtest",
205 ] 207 ]
206 208
207 libs = [ "dxva2.lib" ] 209 libs = [ "dxva2.lib" ]
208 } 210 }
209 211
212 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
213 sources = [
214 "src/cfi_unittest_exe.cc",
215 ]
216 deps = [
217 "//base",
218 "//build/config/sanitizers:deps",
219 "//build/win:default_exe_manifest",
220 ]
221
222 # cfi_unittest.cc tests require this exe is built with CFG enabled.
223 configs += [ "//build/config/win:win_msvc_cfg" ]
224 }
225
210 loadable_module("sbox_integration_test_hook_dll") { 226 loadable_module("sbox_integration_test_hook_dll") {
211 sources = [ 227 sources = [
212 "tests/integration_tests/hooking_dll.cc", 228 "tests/integration_tests/hooking_dll.cc",
213 "tests/integration_tests/integration_tests_common.h", 229 "tests/integration_tests/integration_tests_common.h",
214 ] 230 ]
215 } 231 }
216 232
217 executable("sbox_integration_test_win_proc") { 233 executable("sbox_integration_test_win_proc") {
218 sources = [ 234 sources = [
219 "tests/integration_tests/hooking_win_proc.cc", 235 "tests/integration_tests/hooking_win_proc.cc",
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 "sandbox_poc/pocdll/spyware.cc", 320 "sandbox_poc/pocdll/spyware.cc",
305 "sandbox_poc/pocdll/utils.h", 321 "sandbox_poc/pocdll/utils.h",
306 ] 322 ]
307 323
308 defines = [ "POCDLL_EXPORTS" ] 324 defines = [ "POCDLL_EXPORTS" ]
309 325
310 deps = [ 326 deps = [
311 "//build/config/sanitizers:deps", 327 "//build/config/sanitizers:deps",
312 ] 328 ]
313 } 329 }
OLDNEW
« 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