OLD | NEW |
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 Loading... |
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 |
OLD | NEW |