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

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

Issue 10736064: Switch to TimeDelta interfaces in chrome automation test infrastructure. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | chrome/test/automation/browser_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int flags, 99 int flags,
100 bool press_escape_en_route) WARN_UNUSED_RESULT; 100 bool press_escape_en_route) WARN_UNUSED_RESULT;
101 101
102 // Block the thread until the tab count is |count|. 102 // Block the thread until the tab count is |count|.
103 // Returns true on success. 103 // Returns true on success.
104 bool WaitForTabCountToBecome(int count) WARN_UNUSED_RESULT; 104 bool WaitForTabCountToBecome(int count) WARN_UNUSED_RESULT;
105 105
106 // Block the thread until the specified tab is the active tab. 106 // Block the thread until the specified tab is the active tab.
107 // |wait_timeout| is the timeout, in milliseconds, for waiting. 107 // |wait_timeout| is the timeout, in milliseconds, for waiting.
108 // Returns false if the tab does not become active. 108 // Returns false if the tab does not become active.
109 bool WaitForTabToBecomeActive(int tab, int wait_timeout) WARN_UNUSED_RESULT; 109 bool WaitForTabToBecomeActive(
110 int tab,
111 base::TimeDelta wait_timeout) WARN_UNUSED_RESULT;
110 112
111 // Opens the FindInPage box. Note: If you just want to search within a tab 113 // Opens the FindInPage box. Note: If you just want to search within a tab
112 // you don't need to call this function, just use FindInPage(...) directly. 114 // you don't need to call this function, just use FindInPage(...) directly.
113 bool OpenFindInPage() WARN_UNUSED_RESULT; 115 bool OpenFindInPage() WARN_UNUSED_RESULT;
114 116
115 // Returns whether the Find window is fully visible If animating, |is_visible| 117 // Returns whether the Find window is fully visible If animating, |is_visible|
116 // will be false. Returns false on failure. 118 // will be false. Returns false on failure.
117 bool IsFindWindowFullyVisible(bool* is_visible) WARN_UNUSED_RESULT; 119 bool IsFindWindowFullyVisible(bool* is_visible) WARN_UNUSED_RESULT;
118 120
119 // Run the specified command in the browser 121 // Run the specified command in the browser
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool SendJSONRequest(const std::string& request, 175 bool SendJSONRequest(const std::string& request,
174 int timeout_ms, 176 int timeout_ms,
175 std::string* response) WARN_UNUSED_RESULT; 177 std::string* response) WARN_UNUSED_RESULT;
176 178
177 // Gets the load times for all tabs started from the command line. 179 // Gets the load times for all tabs started from the command line.
178 // Puts the time of the first tab to start loading into |min_start_time|, 180 // Puts the time of the first tab to start loading into |min_start_time|,
179 // the time when loading stopped into |max_stop_time| (should be similar to 181 // the time when loading stopped into |max_stop_time| (should be similar to
180 // the delay that WaitForInitialLoads waits for), and a list of all 182 // the delay that WaitForInitialLoads waits for), and a list of all
181 // finished timestamps into |stop_times|. Returns true on success. 183 // finished timestamps into |stop_times|. Returns true on success.
182 bool GetInitialLoadTimes( 184 bool GetInitialLoadTimes(
183 int timeout_ms, 185 base::TimeDelta timeout,
184 float* min_start_time, 186 float* min_start_time,
185 float* max_stop_time, 187 float* max_stop_time,
186 std::vector<float>* stop_times); 188 std::vector<float>* stop_times);
187 189
188 190
189 protected: 191 protected:
190 virtual ~BrowserProxy() {} 192 virtual ~BrowserProxy() {}
191 private: 193 private:
192 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); 194 DISALLOW_COPY_AND_ASSIGN(BrowserProxy);
193 }; 195 };
194 196
195 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ 197 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_proxy.cc ('k') | chrome/test/automation/browser_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698