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 #ifndef SANDBOX_TESTS_COMMON_CONTROLLER_H_ | 5 #ifndef SANDBOX_TESTS_COMMON_CONTROLLER_H_ |
6 #define SANDBOX_TESTS_COMMON_CONTROLLER_H__ | 6 #define SANDBOX_TESTS_COMMON_CONTROLLER_H__ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/win/scoped_handle.h" | 11 #include "base/win/scoped_handle.h" |
12 #include "sandbox/src/sandbox.h" | 12 #include "sandbox/win/src/sandbox.h" |
13 | 13 |
14 namespace sandbox { | 14 namespace sandbox { |
15 | 15 |
16 // See winerror.h for details. | 16 // See winerror.h for details. |
17 #define SEVERITY_INFO_FLAGS 0x40000000 | 17 #define SEVERITY_INFO_FLAGS 0x40000000 |
18 #define SEVERITY_ERROR_FLAGS 0xC0000000 | 18 #define SEVERITY_ERROR_FLAGS 0xC0000000 |
19 #define CUSTOMER_CODE 0x20000000 | 19 #define CUSTOMER_CODE 0x20000000 |
20 #define SBOX_TESTS_FACILITY 0x05B10000 | 20 #define SBOX_TESTS_FACILITY 0x05B10000 |
21 | 21 |
22 // All the possible error codes returned by the child process in | 22 // All the possible error codes returned by the child process in |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 136 |
137 // Constructs a full path to a file inside the system32 (or syswow64) folder. | 137 // Constructs a full path to a file inside the system32 (or syswow64) folder. |
138 std::wstring MakePathToSys(const wchar_t* name, bool is_obj_man_path); | 138 std::wstring MakePathToSys(const wchar_t* name, bool is_obj_man_path); |
139 | 139 |
140 // Runs the given test on the target process. | 140 // Runs the given test on the target process. |
141 int DispatchCall(int argc, wchar_t **argv); | 141 int DispatchCall(int argc, wchar_t **argv); |
142 | 142 |
143 } // namespace sandbox | 143 } // namespace sandbox |
144 | 144 |
145 #endif // SANDBOX_TESTS_COMMON_CONTROLLER_H_ | 145 #endif // SANDBOX_TESTS_COMMON_CONTROLLER_H_ |
OLD | NEW |