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

Side by Side Diff: chrome/test/base/ui_test_utils.h

Issue 8817007: Revert 113015 - speculative revert to see if this fixes the interactive test breakage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
« no previous file with comments | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/test/base/ui_test_utils.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_BASE_UI_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_
6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 // Generate a URL for a file path including a query string. 188 // Generate a URL for a file path including a query string.
189 GURL GetFileUrlWithQuery(const FilePath& path, const std::string& query_string); 189 GURL GetFileUrlWithQuery(const FilePath& path, const std::string& query_string);
190 190
191 // Blocks until an application modal dialog is showns and returns it. 191 // Blocks until an application modal dialog is showns and returns it.
192 AppModalDialog* WaitForAppModalDialog(); 192 AppModalDialog* WaitForAppModalDialog();
193 193
194 // Causes the specified tab to crash. Blocks until it is crashed. 194 // Causes the specified tab to crash. Blocks until it is crashed.
195 void CrashTab(TabContents* tab); 195 void CrashTab(TabContents* tab);
196 196
197 // Waits for the focus to change in the specified tab.
198 void WaitForFocusChange(TabContents* tab_contents);
199
200 // Waits for the renderer to return focus to the browser (happens through tab
201 // traversal).
202 void WaitForFocusInBrowser(Browser* browser);
203
197 // Performs a find in the page of the specified tab. Returns the number of 204 // Performs a find in the page of the specified tab. Returns the number of
198 // matches found. |ordinal| is an optional parameter which is set to the index 205 // matches found. |ordinal| is an optional parameter which is set to the index
199 // of the current match. 206 // of the current match.
200 int FindInPage(TabContentsWrapper* tab, 207 int FindInPage(TabContentsWrapper* tab,
201 const string16& search_string, 208 const string16& search_string,
202 bool forward, 209 bool forward,
203 bool case_sensitive, 210 bool case_sensitive,
204 int* ordinal); 211 int* ordinal);
205 212
206 // Returns true if the View is focused. 213 // Returns true if the View is focused.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 572
566 // Takes a snapshot of the entire page, according to the width and height 573 // Takes a snapshot of the entire page, according to the width and height
567 // properties of the DOM's document. Returns true on success. DOMAutomation 574 // properties of the DOM's document. Returns true on success. DOMAutomation
568 // must be enabled. 575 // must be enabled.
569 bool TakeEntirePageSnapshot(RenderViewHost* rvh, 576 bool TakeEntirePageSnapshot(RenderViewHost* rvh,
570 SkBitmap* bitmap) WARN_UNUSED_RESULT; 577 SkBitmap* bitmap) WARN_UNUSED_RESULT;
571 578
572 } // namespace ui_test_utils 579 } // namespace ui_test_utils
573 580
574 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ 581 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698