| 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 "base/win/scoped_process_information.h" | 5 #include "base/win/scoped_process_information.h" |
| 6 #include "base/win/windows_version.h" | 6 #include "base/win/windows_version.h" |
| 7 #include "sandbox/src/sandbox.h" | 7 #include "sandbox/win/src/sandbox.h" |
| 8 #include "sandbox/src/sandbox_factory.h" | 8 #include "sandbox/win/src/sandbox_factory.h" |
| 9 #include "sandbox/src/sandbox_utils.h" | 9 #include "sandbox/win/src/sandbox_utils.h" |
| 10 #include "sandbox/src/target_services.h" | 10 #include "sandbox/win/src/target_services.h" |
| 11 #include "sandbox/tests/common/controller.h" | 11 #include "sandbox/win/tests/common/controller.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace sandbox { | 14 namespace sandbox { |
| 15 | 15 |
| 16 #define BINDNTDLL(name) \ | 16 #define BINDNTDLL(name) \ |
| 17 name ## Function name = reinterpret_cast<name ## Function>( \ | 17 name ## Function name = reinterpret_cast<name ## Function>( \ |
| 18 ::GetProcAddress(::GetModuleHandle(L"ntdll.dll"), #name)) | 18 ::GetProcAddress(::GetModuleHandle(L"ntdll.dll"), #name)) |
| 19 | 19 |
| 20 // Reverts to self and verify that SetInformationToken was faked. Returns | 20 // Reverts to self and verify that SetInformationToken was faked. Returns |
| 21 // SBOX_TEST_SUCCEEDED if faked and SBOX_TEST_FAILED if not faked. | 21 // SBOX_TEST_SUCCEEDED if faked and SBOX_TEST_FAILED if not faked. |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 ::WaitForSingleObject(target.process_handle(), INFINITE); | 329 ::WaitForSingleObject(target.process_handle(), INFINITE); |
| 330 | 330 |
| 331 // Close the desktop handle. | 331 // Close the desktop handle. |
| 332 temp_policy = broker->CreatePolicy(); | 332 temp_policy = broker->CreatePolicy(); |
| 333 temp_policy->DestroyAlternateDesktop(); | 333 temp_policy->DestroyAlternateDesktop(); |
| 334 temp_policy->Release(); | 334 temp_policy->Release(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 } // namespace sandbox | 337 } // namespace sandbox |
| OLD | NEW |