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

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

Issue 1849323003: Convert //sandbox to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixup nonsfi_sandbox_unittest.cc Created 4 years, 8 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
« no previous file with comments | « sandbox/win/src/interception_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "base/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "base/path_service.h" 7 #include "base/path_service.h"
9 #include "base/process/launch.h" 8 #include "base/process/launch.h"
10 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
11 #include "base/win/scoped_handle.h" 10 #include "base/win/scoped_handle.h"
12 #include "base/win/windows_version.h" 11 #include "base/win/windows_version.h"
13 #include "sandbox/win/src/nt_internals.h" 12 #include "sandbox/win/src/nt_internals.h"
14 #include "sandbox/win/src/process_mitigations.h" 13 #include "sandbox/win/src/process_mitigations.h"
15 #include "sandbox/win/src/sandbox.h" 14 #include "sandbox/win/src/sandbox.h"
16 #include "sandbox/win/src/sandbox_factory.h" 15 #include "sandbox/win/src/sandbox_factory.h"
17 #include "sandbox/win/src/target_services.h" 16 #include "sandbox/win/src/target_services.h"
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 cmd = cmd.Append(L"calc.exe"); 725 cmd = cmd.Append(L"calc.exe");
727 726
728 std::wstring test_command(base::StringPrintf(L"TestChildProcess %ls 0x%08X", 727 std::wstring test_command(base::StringPrintf(L"TestChildProcess %ls 0x%08X",
729 cmd.value().c_str(), 728 cmd.value().c_str(),
730 STATUS_ACCESS_VIOLATION)); 729 STATUS_ACCESS_VIOLATION));
731 730
732 EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(test_command.c_str())); 731 EXPECT_EQ(SBOX_TEST_SUCCEEDED, runner.RunTest(test_command.c_str()));
733 } 732 }
734 733
735 } // namespace sandbox 734 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/win/src/interception_unittest.cc ('k') | sandbox/win/src/process_policy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698