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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | sandbox/win/tests/integration_tests/cfi_unittest.cc » ('j') | no next file with comments »
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 "src/process_policy_test.cc", 184 "src/process_policy_test.cc",
185 "src/registry_policy_test.cc", 185 "src/registry_policy_test.cc",
186 "src/restricted_token_test.cc", 186 "src/restricted_token_test.cc",
187 "src/sync_policy_test.cc", 187 "src/sync_policy_test.cc",
188 "src/sync_policy_test.h", 188 "src/sync_policy_test.h",
189 "src/unload_dll_test.cc", 189 "src/unload_dll_test.cc",
190 "tests/common/controller.cc", 190 "tests/common/controller.cc",
191 "tests/common/controller.h", 191 "tests/common/controller.h",
192 "tests/common/test_utils.cc", 192 "tests/common/test_utils.cc",
193 "tests/common/test_utils.h", 193 "tests/common/test_utils.h",
194 "tests/integration_tests/cfi_unittest.cc",
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 = [
200 ":sandbox", 201 ":sandbox",
202 "//base/test:test_support",
203 "//testing/gtest",
204 ]
205
206 data_deps = [
207 ":cfi_unittest_exe",
201 ":sbox_integration_test_hook_dll", 208 ":sbox_integration_test_hook_dll",
202 ":sbox_integration_test_win_proc", 209 ":sbox_integration_test_win_proc",
203 "//base/test:test_support",
204 "//testing/gtest",
205 ] 210 ]
206 211
207 libs = [ "dxva2.lib" ] 212 libs = [ "dxva2.lib" ]
208 } 213 }
209 214
215 executable("cfi_unittest_exe") {
216 sources = [
217 "tests/integration_tests/cfi_unittest_exe.cc",
218 ]
219 deps = [
220 "//base",
221 "//build/config/sanitizers:deps",
222 "//build/win:default_exe_manifest",
223 ]
224
225 # cfi_unittest.cc tests require this exe is built with CFG enabled.
226 configs += [ "//build/config/win:win_msvc_cfg" ]
227 }
228
210 loadable_module("sbox_integration_test_hook_dll") { 229 loadable_module("sbox_integration_test_hook_dll") {
211 sources = [ 230 sources = [
212 "tests/integration_tests/hooking_dll.cc", 231 "tests/integration_tests/hooking_dll.cc",
213 "tests/integration_tests/integration_tests_common.h", 232 "tests/integration_tests/integration_tests_common.h",
214 ] 233 ]
215 } 234 }
216 235
217 executable("sbox_integration_test_win_proc") { 236 executable("sbox_integration_test_win_proc") {
218 sources = [ 237 sources = [
219 "tests/integration_tests/hooking_win_proc.cc", 238 "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", 323 "sandbox_poc/pocdll/spyware.cc",
305 "sandbox_poc/pocdll/utils.h", 324 "sandbox_poc/pocdll/utils.h",
306 ] 325 ]
307 326
308 defines = [ "POCDLL_EXPORTS" ] 327 defines = [ "POCDLL_EXPORTS" ]
309 328
310 deps = [ 329 deps = [
311 "//build/config/sanitizers:deps", 330 "//build/config/sanitizers:deps",
312 ] 331 ]
313 } 332 }
OLDNEW
« 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