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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 "src/registry_policy_test.cc", | 205 "src/registry_policy_test.cc", |
206 "src/restricted_token_test.cc", | 206 "src/restricted_token_test.cc", |
207 "src/sync_policy_test.cc", | 207 "src/sync_policy_test.cc", |
208 "src/sync_policy_test.h", | 208 "src/sync_policy_test.h", |
209 "src/unload_dll_test.cc", | 209 "src/unload_dll_test.cc", |
210 "tests/common/controller.cc", | 210 "tests/common/controller.cc", |
211 "tests/common/controller.h", | 211 "tests/common/controller.h", |
212 "tests/common/test_utils.cc", | 212 "tests/common/test_utils.cc", |
213 "tests/common/test_utils.h", | 213 "tests/common/test_utils.h", |
214 "tests/integration_tests/integration_tests.cc", | 214 "tests/integration_tests/integration_tests.cc", |
| 215 "tests/integration_tests/integration_tests_common.h", |
215 "tests/integration_tests/integration_tests_test.cc", | 216 "tests/integration_tests/integration_tests_test.cc", |
216 ] | 217 ] |
217 | 218 |
218 deps = [ | 219 deps = [ |
219 ":sandbox", | 220 ":sandbox", |
| 221 ":sbox_integration_test_hook_dll", |
| 222 ":sbox_integration_test_win_proc", |
220 "//base/test:test_support", | 223 "//base/test:test_support", |
221 "//testing/gtest", | 224 "//testing/gtest", |
222 ] | 225 ] |
223 } | 226 } |
224 | 227 |
| 228 loadable_module("sbox_integration_test_hook_dll") { |
| 229 sources = [ |
| 230 "tests/integration_tests/hooking_dll.cc", |
| 231 "tests/integration_tests/integration_tests_common.h", |
| 232 ] |
| 233 } |
| 234 |
| 235 executable("sbox_integration_test_win_proc") { |
| 236 sources = [ |
| 237 "tests/integration_tests/hooking_win_proc.cc", |
| 238 "tests/integration_tests/integration_tests_common.h", |
| 239 ] |
| 240 |
| 241 configs -= [ "//build/config/win:console" ] |
| 242 configs += [ "//build/config/win:windowed" ] |
| 243 } |
| 244 |
225 test("sbox_validation_tests") { | 245 test("sbox_validation_tests") { |
226 sources = [ | 246 sources = [ |
227 "tests/common/controller.cc", | 247 "tests/common/controller.cc", |
228 "tests/common/controller.h", | 248 "tests/common/controller.h", |
229 "tests/validation_tests/commands.cc", | 249 "tests/validation_tests/commands.cc", |
230 "tests/validation_tests/commands.h", | 250 "tests/validation_tests/commands.h", |
231 "tests/validation_tests/suite.cc", | 251 "tests/validation_tests/suite.cc", |
232 "tests/validation_tests/unit_tests.cc", | 252 "tests/validation_tests/unit_tests.cc", |
233 ] | 253 ] |
234 | 254 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 "sandbox_poc/pocdll/spyware.cc", | 322 "sandbox_poc/pocdll/spyware.cc", |
303 "sandbox_poc/pocdll/utils.h", | 323 "sandbox_poc/pocdll/utils.h", |
304 ] | 324 ] |
305 | 325 |
306 defines = [ "POCDLL_EXPORTS" ] | 326 defines = [ "POCDLL_EXPORTS" ] |
307 | 327 |
308 deps = [ | 328 deps = [ |
309 "//build/config/sanitizers:deps", | 329 "//build/config/sanitizers:deps", |
310 ] | 330 ] |
311 } | 331 } |
OLD | NEW |