| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
| 11 #include <atlcom.h> | 11 #include <atlcom.h> |
| 12 | 12 |
| 13 #include "base/win/atlcheck.h" |
| 14 |
| 13 class FilePath; | 15 class FilePath; |
| 14 | 16 |
| 15 extern const wchar_t kChromeFrameDllName[]; | 17 extern const wchar_t kChromeFrameDllName[]; |
| 16 extern const wchar_t kChromeLauncherExeName[]; | 18 extern const wchar_t kChromeLauncherExeName[]; |
| 17 | 19 |
| 18 // Helper class used to register different chrome frame DLLs while running | 20 // Helper class used to register different chrome frame DLLs while running |
| 19 // tests. The default constructor registers the DLL found in the build path. | 21 // tests. The default constructor registers the DLL found in the build path. |
| 20 | 22 |
| 21 // At destruction, again registers the DLL found in the build path if another | 23 // At destruction, again registers the DLL found in the build path if another |
| 22 // DLL has since been registered. Triggers GTEST asserts on failure. | 24 // DLL has since been registered. Triggers GTEST asserts on failure. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Kills all running processes named |process_name| that have the string | 107 // Kills all running processes named |process_name| that have the string |
| 106 // |argument| on their command line. Useful for killing all Chrome Frame | 108 // |argument| on their command line. Useful for killing all Chrome Frame |
| 107 // instances of Chrome that all have --chrome-frame in their command line. | 109 // instances of Chrome that all have --chrome-frame in their command line. |
| 108 bool KillAllNamedProcessesWithArgument(const std::wstring& process_name, | 110 bool KillAllNamedProcessesWithArgument(const std::wstring& process_name, |
| 109 const std::wstring& argument); | 111 const std::wstring& argument); |
| 110 | 112 |
| 111 // If the workstation is locked and cannot receive user input. | 113 // If the workstation is locked and cannot receive user input. |
| 112 bool IsWorkstationLocked(); | 114 bool IsWorkstationLocked(); |
| 113 | 115 |
| 114 #endif // CHROME_FRAME_TEST_UTILS_H_ | 116 #endif // CHROME_FRAME_TEST_UTILS_H_ |
| OLD | NEW |