OLD | NEW |
---|---|
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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
211 "tests/common/controller.cc", | 211 "tests/common/controller.cc", |
212 "tests/common/controller.h", | 212 "tests/common/controller.h", |
213 "tests/common/test_utils.cc", | 213 "tests/common/test_utils.cc", |
214 "tests/common/test_utils.h", | 214 "tests/common/test_utils.h", |
215 "tests/integration_tests/integration_tests.cc", | 215 "tests/integration_tests/integration_tests.cc", |
216 "tests/integration_tests/integration_tests_test.cc", | 216 "tests/integration_tests/integration_tests_test.cc", |
217 ] | 217 ] |
218 | 218 |
219 deps = [ | 219 deps = [ |
220 ":sandbox", | 220 ":sandbox", |
221 ":sbox_integration_test_hook_dll", | |
222 ":sbox_integration_test_win_proc", | |
221 "//base/test:test_support", | 223 "//base/test:test_support", |
222 "//testing/gtest", | 224 "//testing/gtest", |
223 ] | 225 ] |
224 } | 226 } |
225 | 227 |
228 shared_library("sbox_integration_test_hook_dll") { | |
229 sources = [ | |
230 "tests/integration_tests/hooking_dll.cc", | |
231 ] | |
232 } | |
233 | |
234 executable("sbox_integration_test_win_proc") { | |
235 sources = [ | |
236 "tests/integration_tests/hooking_win_proc.cc", | |
237 ] | |
238 ldflags = [ "/SUBSYSTEM:WINDOWS" ] | |
brucedawson
2016/03/29 20:56:23
You need to replace the ldflags line with:
conf
| |
239 } | |
240 | |
226 test("sbox_validation_tests") { | 241 test("sbox_validation_tests") { |
227 sources = [ | 242 sources = [ |
228 "tests/common/controller.cc", | 243 "tests/common/controller.cc", |
229 "tests/common/controller.h", | 244 "tests/common/controller.h", |
230 "tests/validation_tests/commands.cc", | 245 "tests/validation_tests/commands.cc", |
231 "tests/validation_tests/commands.h", | 246 "tests/validation_tests/commands.h", |
232 "tests/validation_tests/suite.cc", | 247 "tests/validation_tests/suite.cc", |
233 "tests/validation_tests/unit_tests.cc", | 248 "tests/validation_tests/unit_tests.cc", |
234 ] | 249 ] |
235 | 250 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
302 "sandbox_poc/pocdll/spyware.cc", | 317 "sandbox_poc/pocdll/spyware.cc", |
303 "sandbox_poc/pocdll/utils.h", | 318 "sandbox_poc/pocdll/utils.h", |
304 ] | 319 ] |
305 | 320 |
306 defines = [ "POCDLL_EXPORTS" ] | 321 defines = [ "POCDLL_EXPORTS" ] |
307 | 322 |
308 deps = [ | 323 deps = [ |
309 "//build/config/sanitizers:deps", | 324 "//build/config/sanitizers:deps", |
310 ] | 325 ] |
311 } | 326 } |
OLD | NEW |