| 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 source_set("sandbox") { | 7 source_set("sandbox") { |
| 8 sources = [ | 8 sources = [ |
| 9 "src/acl.cc", | 9 "src/acl.cc", |
| 10 "src/acl.h", | 10 "src/acl.h", |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 "src/process_thread_policy.cc", | 80 "src/process_thread_policy.cc", |
| 81 "src/process_thread_policy.h", | 81 "src/process_thread_policy.h", |
| 82 "src/registry_dispatcher.cc", | 82 "src/registry_dispatcher.cc", |
| 83 "src/registry_dispatcher.h", | 83 "src/registry_dispatcher.h", |
| 84 "src/registry_interception.cc", | 84 "src/registry_interception.cc", |
| 85 "src/registry_interception.h", | 85 "src/registry_interception.h", |
| 86 "src/registry_policy.cc", | 86 "src/registry_policy.cc", |
| 87 "src/registry_policy.h", | 87 "src/registry_policy.h", |
| 88 "src/resolver.cc", | 88 "src/resolver.cc", |
| 89 "src/resolver.h", | 89 "src/resolver.h", |
| 90 "src/restricted_token.cc", |
| 91 "src/restricted_token.h", |
| 90 "src/restricted_token_utils.cc", | 92 "src/restricted_token_utils.cc", |
| 91 "src/restricted_token_utils.h", | 93 "src/restricted_token_utils.h", |
| 92 "src/restricted_token.cc", | 94 "src/sandbox.cc", |
| 93 "src/restricted_token.h", | 95 "src/sandbox.h", |
| 94 "src/sandbox_factory.h", | 96 "src/sandbox_factory.h", |
| 95 "src/sandbox_globals.cc", | 97 "src/sandbox_globals.cc", |
| 96 "src/sandbox_nt_types.h", | 98 "src/sandbox_nt_types.h", |
| 97 "src/sandbox_nt_util.cc", | 99 "src/sandbox_nt_util.cc", |
| 98 "src/sandbox_nt_util.h", | 100 "src/sandbox_nt_util.h", |
| 101 "src/sandbox_policy.h", |
| 99 "src/sandbox_policy_base.cc", | 102 "src/sandbox_policy_base.cc", |
| 100 "src/sandbox_policy_base.h", | 103 "src/sandbox_policy_base.h", |
| 101 "src/sandbox_policy.h", | |
| 102 "src/sandbox_types.h", | 104 "src/sandbox_types.h", |
| 103 "src/sandbox_utils.cc", | 105 "src/sandbox_utils.cc", |
| 104 "src/sandbox_utils.h", | 106 "src/sandbox_utils.h", |
| 105 "src/sandbox.cc", | |
| 106 "src/sandbox.h", | |
| 107 "src/security_level.h", | 107 "src/security_level.h", |
| 108 "src/service_resolver.cc", | 108 "src/service_resolver.cc", |
| 109 "src/service_resolver.h", | 109 "src/service_resolver.h", |
| 110 "src/shared_handles.cc", | 110 "src/shared_handles.cc", |
| 111 "src/shared_handles.h", | 111 "src/shared_handles.h", |
| 112 "src/sharedmem_ipc_client.cc", | 112 "src/sharedmem_ipc_client.cc", |
| 113 "src/sharedmem_ipc_client.h", | 113 "src/sharedmem_ipc_client.h", |
| 114 "src/sharedmem_ipc_server.cc", | 114 "src/sharedmem_ipc_server.cc", |
| 115 "src/sharedmem_ipc_server.h", | 115 "src/sharedmem_ipc_server.h", |
| 116 "src/sid.cc", | 116 "src/sid.cc", |
| 117 "src/sid.h", | 117 "src/sid.h", |
| 118 "src/sync_dispatcher.cc", | 118 "src/sync_dispatcher.cc", |
| 119 "src/sync_dispatcher.h", | 119 "src/sync_dispatcher.h", |
| 120 "src/sync_interception.cc", | 120 "src/sync_interception.cc", |
| 121 "src/sync_interception.h", | 121 "src/sync_interception.h", |
| 122 "src/sync_policy.cc", | 122 "src/sync_policy.cc", |
| 123 "src/sync_policy.h", | 123 "src/sync_policy.h", |
| 124 "src/target_interceptions.cc", | 124 "src/target_interceptions.cc", |
| 125 "src/target_interceptions.h", | 125 "src/target_interceptions.h", |
| 126 "src/target_process.cc", | 126 "src/target_process.cc", |
| 127 "src/target_process.h", | 127 "src/target_process.h", |
| 128 "src/target_services.cc", | 128 "src/target_services.cc", |
| 129 "src/target_services.h", | 129 "src/target_services.h", |
| 130 "src/win2k_threadpool.cc", |
| 131 "src/win2k_threadpool.h", |
| 130 "src/win_utils.cc", | 132 "src/win_utils.cc", |
| 131 "src/win_utils.h", | 133 "src/win_utils.h", |
| 132 "src/win2k_threadpool.cc", | |
| 133 "src/win2k_threadpool.h", | |
| 134 "src/window.cc", | 134 "src/window.cc", |
| 135 "src/window.h", | 135 "src/window.h", |
| 136 ] | 136 ] |
| 137 | 137 |
| 138 if (current_cpu == "x64") { | 138 if (current_cpu == "x64") { |
| 139 sources += [ | 139 sources += [ |
| 140 "src/Wow64_64.cc", |
| 140 "src/interceptors_64.cc", | 141 "src/interceptors_64.cc", |
| 141 "src/interceptors_64.h", | 142 "src/interceptors_64.h", |
| 142 "src/resolver_64.cc", | 143 "src/resolver_64.cc", |
| 143 "src/service_resolver_64.cc", | 144 "src/service_resolver_64.cc", |
| 144 "src/Wow64_64.cc", | |
| 145 ] | 145 ] |
| 146 } else if (current_cpu == "x86") { | 146 } else if (current_cpu == "x86") { |
| 147 sources += [ | 147 sources += [ |
| 148 "src/Wow64.cc", |
| 149 "src/Wow64.h", |
| 148 "src/resolver_32.cc", | 150 "src/resolver_32.cc", |
| 149 "src/service_resolver_32.cc", | 151 "src/service_resolver_32.cc", |
| 152 "src/sidestep/ia32_modrm_map.cpp", |
| 153 "src/sidestep/ia32_opcode_map.cpp", |
| 154 "src/sidestep/mini_disassembler.cpp", |
| 155 "src/sidestep/mini_disassembler.h", |
| 156 "src/sidestep/mini_disassembler_types.h", |
| 157 "src/sidestep/preamble_patcher.h", |
| 158 "src/sidestep/preamble_patcher_with_stub.cpp", |
| 150 "src/sidestep_resolver.cc", | 159 "src/sidestep_resolver.cc", |
| 151 "src/sidestep_resolver.h", | 160 "src/sidestep_resolver.h", |
| 152 "src/sidestep/ia32_modrm_map.cpp", | |
| 153 "src/sidestep/ia32_opcode_map.cpp", | |
| 154 "src/sidestep/mini_disassembler_types.h", | |
| 155 "src/sidestep/mini_disassembler.cpp", | |
| 156 "src/sidestep/mini_disassembler.h", | |
| 157 "src/sidestep/preamble_patcher_with_stub.cpp", | |
| 158 "src/sidestep/preamble_patcher.h", | |
| 159 "src/Wow64.cc", | |
| 160 "src/Wow64.h", | |
| 161 ] | 161 ] |
| 162 } | 162 } |
| 163 | 163 |
| 164 deps = [ | 164 deps = [ |
| 165 "//base", | 165 "//base", |
| 166 ] | 166 ] |
| 167 if (current_cpu == "x86") { | 167 if (current_cpu == "x86") { |
| 168 deps += [ ":copy_wow_helper" ] | 168 deps += [ ":copy_wow_helper" ] |
| 169 } | 169 } |
| 170 } | 170 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 183 "$root_out_dir/{{source_file_part}}", | 183 "$root_out_dir/{{source_file_part}}", |
| 184 ] | 184 ] |
| 185 } | 185 } |
| 186 } | 186 } |
| 187 | 187 |
| 188 test("sbox_integration_tests") { | 188 test("sbox_integration_tests") { |
| 189 sources = [ | 189 sources = [ |
| 190 "src/address_sanitizer_test.cc", | 190 "src/address_sanitizer_test.cc", |
| 191 "src/app_container_test.cc", | 191 "src/app_container_test.cc", |
| 192 "src/file_policy_test.cc", | 192 "src/file_policy_test.cc", |
| 193 "src/handle_closer_test.cc", |
| 193 "src/handle_inheritance_test.cc", | 194 "src/handle_inheritance_test.cc", |
| 194 "src/handle_policy_test.cc", | 195 "src/handle_policy_test.cc", |
| 195 "tests/integration_tests/integration_tests_test.cc", | |
| 196 "src/handle_closer_test.cc", | |
| 197 "src/integrity_level_test.cc", | 196 "src/integrity_level_test.cc", |
| 198 "src/ipc_ping_test.cc", | 197 "src/ipc_ping_test.cc", |
| 199 "src/named_pipe_policy_test.cc", | 198 "src/named_pipe_policy_test.cc", |
| 200 "src/policy_target_test.cc", | 199 "src/policy_target_test.cc", |
| 201 "src/process_mitigations_test.cc", | 200 "src/process_mitigations_test.cc", |
| 202 "src/process_policy_test.cc", | 201 "src/process_policy_test.cc", |
| 203 "src/registry_policy_test.cc", | 202 "src/registry_policy_test.cc", |
| 204 "src/sync_policy_test.cc", | 203 "src/sync_policy_test.cc", |
| 205 "src/sync_policy_test.h", | 204 "src/sync_policy_test.h", |
| 206 "src/unload_dll_test.cc", | 205 "src/unload_dll_test.cc", |
| 207 "tests/common/controller.cc", | 206 "tests/common/controller.cc", |
| 208 "tests/common/controller.h", | 207 "tests/common/controller.h", |
| 209 "tests/common/test_utils.cc", | 208 "tests/common/test_utils.cc", |
| 210 "tests/common/test_utils.h", | 209 "tests/common/test_utils.h", |
| 211 "tests/integration_tests/integration_tests.cc", | 210 "tests/integration_tests/integration_tests.cc", |
| 211 "tests/integration_tests/integration_tests_test.cc", |
| 212 ] | 212 ] |
| 213 | 213 |
| 214 deps = [ | 214 deps = [ |
| 215 ":sandbox", | 215 ":sandbox", |
| 216 "//base/test:test_support", | 216 "//base/test:test_support", |
| 217 "//testing/gtest", | 217 "//testing/gtest", |
| 218 ] | 218 ] |
| 219 } | 219 } |
| 220 | 220 |
| 221 test("sbox_validation_tests") { | 221 test("sbox_validation_tests") { |
| 222 sources = [ | 222 sources = [ |
| 223 "tests/common/controller.cc", | 223 "tests/common/controller.cc", |
| 224 "tests/common/controller.h", | 224 "tests/common/controller.h", |
| 225 "tests/validation_tests/unit_tests.cc", | |
| 226 "tests/validation_tests/commands.cc", | 225 "tests/validation_tests/commands.cc", |
| 227 "tests/validation_tests/commands.h", | 226 "tests/validation_tests/commands.h", |
| 228 "tests/validation_tests/suite.cc", | 227 "tests/validation_tests/suite.cc", |
| 228 "tests/validation_tests/unit_tests.cc", |
| 229 ] | 229 ] |
| 230 | 230 |
| 231 deps = [ | 231 deps = [ |
| 232 ":sandbox", | 232 ":sandbox", |
| 233 "//base/test:test_support", | 233 "//base/test:test_support", |
| 234 "//testing/gtest", | 234 "//testing/gtest", |
| 235 ] | 235 ] |
| 236 } | 236 } |
| 237 | 237 |
| 238 test("sbox_unittests") { | 238 test("sbox_unittests") { |
| 239 sources = [ | 239 sources = [ |
| 240 "src/app_container_unittest.cc", | 240 "src/app_container_unittest.cc", |
| 241 "src/interception_unittest.cc", | 241 "src/interception_unittest.cc", |
| 242 "src/service_resolver_unittest.cc", | 242 "src/ipc_unittest.cc", |
| 243 "src/restricted_token_unittest.cc", | |
| 244 "src/job_unittest.cc", | 243 "src/job_unittest.cc", |
| 245 "src/sid_unittest.cc", | |
| 246 "src/policy_engine_unittest.cc", | 244 "src/policy_engine_unittest.cc", |
| 247 "src/policy_low_level_unittest.cc", | 245 "src/policy_low_level_unittest.cc", |
| 248 "src/policy_opcodes_unittest.cc", | 246 "src/policy_opcodes_unittest.cc", |
| 249 "src/ipc_unittest.cc", | 247 "src/restricted_token_unittest.cc", |
| 248 "src/service_resolver_unittest.cc", |
| 249 "src/sid_unittest.cc", |
| 250 "src/threadpool_unittest.cc", | 250 "src/threadpool_unittest.cc", |
| 251 "src/win_utils_unittest.cc", | 251 "src/win_utils_unittest.cc", |
| 252 "tests/common/test_utils.cc", | 252 "tests/common/test_utils.cc", |
| 253 "tests/common/test_utils.h", | 253 "tests/common/test_utils.h", |
| 254 "tests/unit_tests/unit_tests.cc", | 254 "tests/unit_tests/unit_tests.cc", |
| 255 ] | 255 ] |
| 256 | 256 |
| 257 deps = [ | 257 deps = [ |
| 258 ":sandbox", | 258 ":sandbox", |
| 259 "//base/test:test_support", | 259 "//base/test:test_support", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 "sandbox_poc/pocdll/network.cc", | 292 "sandbox_poc/pocdll/network.cc", |
| 293 "sandbox_poc/pocdll/pocdll.cc", | 293 "sandbox_poc/pocdll/pocdll.cc", |
| 294 "sandbox_poc/pocdll/processes_and_threads.cc", | 294 "sandbox_poc/pocdll/processes_and_threads.cc", |
| 295 "sandbox_poc/pocdll/registry.cc", | 295 "sandbox_poc/pocdll/registry.cc", |
| 296 "sandbox_poc/pocdll/spyware.cc", | 296 "sandbox_poc/pocdll/spyware.cc", |
| 297 "sandbox_poc/pocdll/utils.h", | 297 "sandbox_poc/pocdll/utils.h", |
| 298 ] | 298 ] |
| 299 | 299 |
| 300 defines = [ "POCDLL_EXPORTS" ] | 300 defines = [ "POCDLL_EXPORTS" ] |
| 301 } | 301 } |
| OLD | NEW |