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

Side by Side Diff: chrome/test/automation/proxy_launcher.h

Issue 11359217: Move scoped_temp_dir from base to base/files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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_TEST_AUTOMATION_PROXY_LAUNCHER_H_ 5 #ifndef CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_
6 #define CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ 6 #define CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/files/scoped_temp_dir.h"
14 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
15 #include "base/process.h" 16 #include "base/process.h"
16 #include "base/scoped_temp_dir.h"
17 #include "base/time.h" 17 #include "base/time.h"
18 18
19 class AutomationProxy; 19 class AutomationProxy;
20 20
21 // Base class for all ProxyLauncher implementations. Contains functionality 21 // Base class for all ProxyLauncher implementations. Contains functionality
22 // fo launching, terminating, and connecting tests to browser processes. This 22 // fo launching, terminating, and connecting tests to browser processes. This
23 // class determines which AutomationProxy implementation is used by a test. 23 // class determines which AutomationProxy implementation is used by a test.
24 // Command line arguments passed to the browser are set in this class. 24 // Command line arguments passed to the browser are set in this class.
25 // 25 //
26 // Subclass from this class to use a different AutomationProxy 26 // Subclass from this class to use a different AutomationProxy
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 bool LaunchBrowserHelper(const LaunchState& state, 154 bool LaunchBrowserHelper(const LaunchState& state,
155 bool main_launch, 155 bool main_launch,
156 bool wait, 156 bool wait,
157 base::ProcessHandle* process) WARN_UNUSED_RESULT; 157 base::ProcessHandle* process) WARN_UNUSED_RESULT;
158 158
159 scoped_ptr<AutomationProxy> automation_proxy_; 159 scoped_ptr<AutomationProxy> automation_proxy_;
160 160
161 // We use a temporary directory for profile to avoid issues with being 161 // We use a temporary directory for profile to avoid issues with being
162 // unable to delete some files because they're in use, etc. 162 // unable to delete some files because they're in use, etc.
163 ScopedTempDir temp_profile_dir_; 163 base::ScopedTempDir temp_profile_dir_;
164 164
165 // Handle to the first Chrome process. 165 // Handle to the first Chrome process.
166 base::ProcessHandle process_; 166 base::ProcessHandle process_;
167 167
168 // PID of |process_| (for debugging). 168 // PID of |process_| (for debugging).
169 base::ProcessId process_id_; 169 base::ProcessId process_id_;
170 170
171 // Time when the browser was run. 171 // Time when the browser was run.
172 base::TimeTicks browser_launch_time_; 172 base::TimeTicks browser_launch_time_;
173 173
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 protected: 250 protected:
251 std::string channel_id_; // Channel id of automation proxy. 251 std::string channel_id_; // Channel id of automation proxy.
252 bool disconnect_on_failure_; // True if we disconnect on IPC channel failure. 252 bool disconnect_on_failure_; // True if we disconnect on IPC channel failure.
253 253
254 private: 254 private:
255 DISALLOW_COPY_AND_ASSIGN(AnonymousProxyLauncher); 255 DISALLOW_COPY_AND_ASSIGN(AnonymousProxyLauncher);
256 }; 256 };
257 257
258 #endif // CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ 258 #endif // CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/service/service_utility_process_host.cc ('k') | chrome/test/base/in_process_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698