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