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