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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 "src/registry_policy_test.cc", | 198 "src/registry_policy_test.cc", |
199 "src/restricted_token_test.cc", | 199 "src/restricted_token_test.cc", |
200 "src/sync_policy_test.cc", | 200 "src/sync_policy_test.cc", |
201 "src/sync_policy_test.h", | 201 "src/sync_policy_test.h", |
202 "src/unload_dll_test.cc", | 202 "src/unload_dll_test.cc", |
203 "tests/common/controller.cc", | 203 "tests/common/controller.cc", |
204 "tests/common/controller.h", | 204 "tests/common/controller.h", |
205 "tests/common/test_utils.cc", | 205 "tests/common/test_utils.cc", |
206 "tests/common/test_utils.h", | 206 "tests/common/test_utils.h", |
207 "tests/integration_tests/integration_tests.cc", | 207 "tests/integration_tests/integration_tests.cc", |
| 208 "tests/integration_tests/integration_tests_common.h", |
208 "tests/integration_tests/integration_tests_test.cc", | 209 "tests/integration_tests/integration_tests_test.cc", |
209 ] | 210 ] |
210 | 211 |
211 deps = [ | 212 deps = [ |
212 ":sandbox", | 213 ":sandbox", |
| 214 ":sbox_integration_test_hook_dll", |
| 215 ":sbox_integration_test_win_proc", |
213 "//base/test:test_support", | 216 "//base/test:test_support", |
214 "//testing/gtest", | 217 "//testing/gtest", |
215 ] | 218 ] |
216 | 219 |
217 libs = [ "dxva2.lib" ] | 220 libs = [ "dxva2.lib" ] |
218 } | 221 } |
219 | 222 |
| 223 loadable_module("sbox_integration_test_hook_dll") { |
| 224 sources = [ |
| 225 "tests/integration_tests/hooking_dll.cc", |
| 226 "tests/integration_tests/integration_tests_common.h", |
| 227 ] |
| 228 } |
| 229 |
| 230 executable("sbox_integration_test_win_proc") { |
| 231 sources = [ |
| 232 "tests/integration_tests/hooking_win_proc.cc", |
| 233 "tests/integration_tests/integration_tests_common.h", |
| 234 ] |
| 235 |
| 236 configs -= [ "//build/config/win:console" ] |
| 237 configs += [ "//build/config/win:windowed" ] |
| 238 } |
| 239 |
220 test("sbox_validation_tests") { | 240 test("sbox_validation_tests") { |
221 sources = [ | 241 sources = [ |
222 "tests/common/controller.cc", | 242 "tests/common/controller.cc", |
223 "tests/common/controller.h", | 243 "tests/common/controller.h", |
224 "tests/validation_tests/commands.cc", | 244 "tests/validation_tests/commands.cc", |
225 "tests/validation_tests/commands.h", | 245 "tests/validation_tests/commands.h", |
226 "tests/validation_tests/suite.cc", | 246 "tests/validation_tests/suite.cc", |
227 "tests/validation_tests/unit_tests.cc", | 247 "tests/validation_tests/unit_tests.cc", |
228 ] | 248 ] |
229 | 249 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 "sandbox_poc/pocdll/spyware.cc", | 317 "sandbox_poc/pocdll/spyware.cc", |
298 "sandbox_poc/pocdll/utils.h", | 318 "sandbox_poc/pocdll/utils.h", |
299 ] | 319 ] |
300 | 320 |
301 defines = [ "POCDLL_EXPORTS" ] | 321 defines = [ "POCDLL_EXPORTS" ] |
302 | 322 |
303 deps = [ | 323 deps = [ |
304 "//build/config/sanitizers:deps", | 324 "//build/config/sanitizers:deps", |
305 ] | 325 ] |
306 } | 326 } |
OLD | NEW |