OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
218 // 2. Call an automation method that results in opening the popup menu. | 218 // 2. Call an automation method that results in opening the popup menu. |
219 // 3. Call WaitForPopupMenuToOpen and check for success. | 219 // 3. Call WaitForPopupMenuToOpen and check for success. |
220 // Both methods return true on success. | 220 // Both methods return true on success. |
221 bool StartTrackingPopupMenus() WARN_UNUSED_RESULT; | 221 bool StartTrackingPopupMenus() WARN_UNUSED_RESULT; |
222 bool WaitForPopupMenuToOpen() WARN_UNUSED_RESULT; | 222 bool WaitForPopupMenuToOpen() WARN_UNUSED_RESULT; |
223 | 223 |
224 // Generic pattern for sending automation requests. | 224 // Generic pattern for sending automation requests. |
225 bool SendJSONRequest(const std::string& request, | 225 bool SendJSONRequest(const std::string& request, |
226 std::string* response) WARN_UNUSED_RESULT; | 226 std::string* response) WARN_UNUSED_RESULT; |
227 | 227 |
228 bool SendJSONRequest(const std::string& request, | |
Paweł Hajdan Jr.
2011/03/26 10:55:12
nit: Please remove the version that doesn't take a
Huyen
2011/03/29 00:11:39
Done.
| |
229 std::string* response, | |
230 int timeout) WARN_UNUSED_RESULT; | |
231 | |
228 // Gets the load times for all tabs started from the command line. | 232 // Gets the load times for all tabs started from the command line. |
229 // Puts the time of the first tab to start loading into |min_start_time|, | 233 // Puts the time of the first tab to start loading into |min_start_time|, |
230 // the time when loading stopped into |max_stop_time| (should be similar to | 234 // the time when loading stopped into |max_stop_time| (should be similar to |
231 // the delay that WaitForInitialLoads waits for), and a list of all | 235 // the delay that WaitForInitialLoads waits for), and a list of all |
232 // finished timestamps into |stop_times|. Returns true on success. | 236 // finished timestamps into |stop_times|. Returns true on success. |
233 bool GetInitialLoadTimes(float* min_start_time, float* max_stop_time, | 237 bool GetInitialLoadTimes(float* min_start_time, float* max_stop_time, |
234 std::vector<float>* stop_times); | 238 std::vector<float>* stop_times); |
235 | 239 |
236 | 240 |
237 protected: | 241 protected: |
238 virtual ~BrowserProxy() {} | 242 virtual ~BrowserProxy() {} |
239 private: | 243 private: |
240 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); | 244 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); |
241 }; | 245 }; |
242 | 246 |
243 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 247 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
OLD | NEW |