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_WIN_TESTS_COMMON_CONTROLLER_H_ | 5 #ifndef SANDBOX_WIN_TESTS_COMMON_CONTROLLER_H_ |
6 #define SANDBOX_WIN_TESTS_COMMON_CONTROLLER_H_ | 6 #define SANDBOX_WIN_TESTS_COMMON_CONTROLLER_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool is_async_; | 141 bool is_async_; |
142 bool no_sandbox_; | 142 bool no_sandbox_; |
143 bool kill_on_destruction_; | 143 bool kill_on_destruction_; |
144 base::win::ScopedHandle target_process_; | 144 base::win::ScopedHandle target_process_; |
145 DWORD target_process_id_; | 145 DWORD target_process_id_; |
146 }; | 146 }; |
147 | 147 |
148 // Returns the broker services. | 148 // Returns the broker services. |
149 BrokerServices* GetBroker(); | 149 BrokerServices* GetBroker(); |
150 | 150 |
151 // Constructs a full path to a file inside the system32 (or syswow64) folder. | 151 // Constructs a full path to a file inside the system32 folder. |
| 152 base::string16 MakePathToSys32(const wchar_t* name, bool is_obj_man_path); |
| 153 |
| 154 // Constructs a full path to a file inside the syswow64 folder. |
| 155 base::string16 MakePathToSysWow64(const wchar_t* name, bool is_obj_man_path); |
| 156 |
| 157 // Constructs a full path to a file inside the system32 (or syswow64) folder |
| 158 // depending on whether process is running in wow64 or not. |
152 base::string16 MakePathToSys(const wchar_t* name, bool is_obj_man_path); | 159 base::string16 MakePathToSys(const wchar_t* name, bool is_obj_man_path); |
153 | 160 |
154 // Runs the given test on the target process. | 161 // Runs the given test on the target process. |
155 int DispatchCall(int argc, wchar_t **argv); | 162 int DispatchCall(int argc, wchar_t **argv); |
156 | 163 |
157 } // namespace sandbox | 164 } // namespace sandbox |
158 | 165 |
159 #endif // SANDBOX_WIN_TESTS_COMMON_CONTROLLER_H_ | 166 #endif // SANDBOX_WIN_TESTS_COMMON_CONTROLLER_H_ |
OLD | NEW |