| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <Aclapi.h> | 5 #include <Aclapi.h> |
| 6 #include <windows.h> | 6 #include <windows.h> |
| 7 #include <stddef.h> | |
| 8 #include <string> | 7 #include <string> |
| 9 | 8 |
| 10 #include "sandbox/win/tests/validation_tests/commands.h" | 9 #include "sandbox/win/tests/validation_tests/commands.h" |
| 11 | 10 |
| 12 #include "sandbox/win/tests/common/controller.h" | 11 #include "sandbox/win/tests/common/controller.h" |
| 13 | 12 |
| 14 namespace { | 13 namespace { |
| 15 | 14 |
| 16 // Returns the HKEY corresponding to name. If there is no HKEY corresponding | 15 // Returns the HKEY corresponding to name. If there is no HKEY corresponding |
| 17 // to the name it returns NULL. | 16 // to the name it returns NULL. |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 ::Sleep(5000); | 280 ::Sleep(5000); |
| 282 return SBOX_TEST_DENIED; | 281 return SBOX_TEST_DENIED; |
| 283 } | 282 } |
| 284 | 283 |
| 285 return ::VirtualFree(memory, 0, MEM_RELEASE) ? | 284 return ::VirtualFree(memory, 0, MEM_RELEASE) ? |
| 286 SBOX_TEST_SUCCEEDED : SBOX_TEST_FAILED; | 285 SBOX_TEST_SUCCEEDED : SBOX_TEST_FAILED; |
| 287 } | 286 } |
| 288 | 287 |
| 289 | 288 |
| 290 } // namespace sandbox | 289 } // namespace sandbox |
| OLD | NEW |