Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: chrome_frame/test_utils.h

Issue 12314043: Make Ash unittests clean up zombie viewer processes between test runs. These zombie viewer proce… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "Add missing test_scrubber.cc change." Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698