| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 // Initializes the data in the object. Sets is_init_ to tree if the | 132 // Initializes the data in the object. Sets is_init_ to tree if the |
| 133 // function succeeds. This is meant to be called from the constructor. | 133 // function succeeds. This is meant to be called from the constructor. |
| 134 void Init(JobLevel job_level, | 134 void Init(JobLevel job_level, |
| 135 TokenLevel startup_token, | 135 TokenLevel startup_token, |
| 136 TokenLevel main_token); | 136 TokenLevel main_token); |
| 137 | 137 |
| 138 // The actual runner. | 138 // The actual runner. |
| 139 int InternalRunTest(const wchar_t* command); | 139 int InternalRunTest(const wchar_t* command); |
| 140 | 140 |
| 141 BrokerServices* broker_; | 141 BrokerServices* broker_; |
| 142 scoped_refptr<TargetPolicy> policy_; | 142 TargetPolicy* policy_; |
| 143 DWORD timeout_; | 143 DWORD timeout_; |
| 144 SboxTestsState state_; | 144 SboxTestsState state_; |
| 145 bool is_init_; | 145 bool is_init_; |
| 146 bool is_async_; | 146 bool is_async_; |
| 147 bool no_sandbox_; | 147 bool no_sandbox_; |
| 148 bool disable_csrss_; | 148 bool disable_csrss_; |
| 149 bool kill_on_destruction_; | 149 bool kill_on_destruction_; |
| 150 base::win::ScopedHandle target_process_; | 150 base::win::ScopedHandle target_process_; |
| 151 DWORD target_process_id_; | 151 DWORD target_process_id_; |
| 152 }; | 152 }; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 163 // Constructs a full path to a file inside the system32 (or syswow64) folder | 163 // Constructs a full path to a file inside the system32 (or syswow64) folder |
| 164 // depending on whether process is running in wow64 or not. | 164 // depending on whether process is running in wow64 or not. |
| 165 base::string16 MakePathToSys(const wchar_t* name, bool is_obj_man_path); | 165 base::string16 MakePathToSys(const wchar_t* name, bool is_obj_man_path); |
| 166 | 166 |
| 167 // Runs the given test on the target process. | 167 // Runs the given test on the target process. |
| 168 int DispatchCall(int argc, wchar_t **argv); | 168 int DispatchCall(int argc, wchar_t **argv); |
| 169 | 169 |
| 170 } // namespace sandbox | 170 } // namespace sandbox |
| 171 | 171 |
| 172 #endif // SANDBOX_WIN_TESTS_COMMON_CONTROLLER_H_ | 172 #endif // SANDBOX_WIN_TESTS_COMMON_CONTROLLER_H_ |
| OLD | NEW |