| 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 CHROME_FRAME_TEST_UTILS_H_ | 5 #ifndef CHROME_FRAME_TEST_UTILS_H_ |
| 6 #define CHROME_FRAME_TEST_UTILS_H_ | 6 #define CHROME_FRAME_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include <atlbase.h> | 10 #include <atlbase.h> |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 } | 121 } |
| 122 | 122 |
| 123 IDispatch* ToDispatch() { | 123 IDispatch* ToDispatch() { |
| 124 return reinterpret_cast<IDispatch*>(this); | 124 return reinterpret_cast<IDispatch*>(this); |
| 125 } | 125 } |
| 126 | 126 |
| 127 T* owner_; | 127 T* owner_; |
| 128 Method method_; | 128 Method method_; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 // Kills all running processes named |process_name| that have the string | |
| 132 // |argument| on their command line. Useful for killing all Chrome Frame | |
| 133 // instances of Chrome that all have --chrome-frame in their command line. | |
| 134 bool KillAllNamedProcessesWithArgument(const std::wstring& process_name, | |
| 135 const std::wstring& argument); | |
| 136 | |
| 137 // If the workstation is locked and cannot receive user input. | 131 // If the workstation is locked and cannot receive user input. |
| 138 bool IsWorkstationLocked(); | 132 bool IsWorkstationLocked(); |
| 139 | 133 |
| 140 #endif // CHROME_FRAME_TEST_UTILS_H_ | 134 #endif // CHROME_FRAME_TEST_UTILS_H_ |
| OLD | NEW |