Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: sandbox/win/src/policy_target_test.cc

Issue 10783004: Move Windows Sandbox, trybots version (don't commit me!) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to top of tree Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sandbox/win/src/policy_target.cc ('k') | sandbox/win/src/process_policy_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sandbox/win/src/policy_target.cc ('k') | sandbox/win/src/process_policy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698