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_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/files/scoped_temp_dir.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/process.h" | 16 #include "base/process/process.h" |
17 #include "base/time/time.h" | 17 #include "base/time/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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 protected: | 247 protected: |
248 std::string channel_id_; // Channel id of automation proxy. | 248 std::string channel_id_; // Channel id of automation proxy. |
249 bool disconnect_on_failure_; // True if we disconnect on IPC channel failure. | 249 bool disconnect_on_failure_; // True if we disconnect on IPC channel failure. |
250 | 250 |
251 private: | 251 private: |
252 DISALLOW_COPY_AND_ASSIGN(AnonymousProxyLauncher); | 252 DISALLOW_COPY_AND_ASSIGN(AnonymousProxyLauncher); |
253 }; | 253 }; |
254 | 254 |
255 #endif // CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ | 255 #endif // CHROME_TEST_AUTOMATION_PROXY_LAUNCHER_H_ |
OLD | NEW |