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

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

Issue 94013004: Add base:: to string16s in chrome/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again Created 7 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/test/base/testing_profile_manager.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) 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_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 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 BROWSER_TEST_WAIT_FOR_BROWSER = 1 << 0, // Wait for a new browser. 67 BROWSER_TEST_WAIT_FOR_BROWSER = 1 << 0, // Wait for a new browser.
68 BROWSER_TEST_WAIT_FOR_TAB = 1 << 1, // Wait for a new tab. 68 BROWSER_TEST_WAIT_FOR_TAB = 1 << 1, // Wait for a new tab.
69 BROWSER_TEST_WAIT_FOR_NAVIGATION = 1 << 2, // Wait for navigation to finish. 69 BROWSER_TEST_WAIT_FOR_NAVIGATION = 1 << 2, // Wait for navigation to finish.
70 70
71 BROWSER_TEST_MASK = BROWSER_TEST_WAIT_FOR_BROWSER | 71 BROWSER_TEST_MASK = BROWSER_TEST_WAIT_FOR_BROWSER |
72 BROWSER_TEST_WAIT_FOR_TAB | 72 BROWSER_TEST_WAIT_FOR_TAB |
73 BROWSER_TEST_WAIT_FOR_NAVIGATION 73 BROWSER_TEST_WAIT_FOR_NAVIGATION
74 }; 74 };
75 75
76 // Puts the current tab title in |title|. Returns true on success. 76 // Puts the current tab title in |title|. Returns true on success.
77 bool GetCurrentTabTitle(const Browser* browser, string16* title); 77 bool GetCurrentTabTitle(const Browser* browser, base::string16* title);
78 78
79 // Opens |url| in an incognito browser window with the incognito profile of 79 // Opens |url| in an incognito browser window with the incognito profile of
80 // |profile|, blocking until the navigation finishes. This will create a new 80 // |profile|, blocking until the navigation finishes. This will create a new
81 // browser if a browser with the incognito profile does not exist. Returns the 81 // browser if a browser with the incognito profile does not exist. Returns the
82 // incognito window Browser. 82 // incognito window Browser.
83 Browser* OpenURLOffTheRecord(Profile* profile, const GURL& url); 83 Browser* OpenURLOffTheRecord(Profile* profile, const GURL& url);
84 84
85 // Performs the provided navigation process, blocking until the navigation 85 // Performs the provided navigation process, blocking until the navigation
86 // finishes. May change the params in some cases (i.e. if the navigation 86 // finishes. May change the params in some cases (i.e. if the navigation
87 // opens a new browser window). Uses chrome::Navigate. 87 // opens a new browser window). Uses chrome::Navigate.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 bool GetRelativeBuildDirectory(base::FilePath* build_dir); 127 bool GetRelativeBuildDirectory(base::FilePath* build_dir);
128 128
129 // Blocks until an application modal dialog is showns and returns it. 129 // Blocks until an application modal dialog is showns and returns it.
130 AppModalDialog* WaitForAppModalDialog(); 130 AppModalDialog* WaitForAppModalDialog();
131 131
132 // Performs a find in the page of the specified tab. Returns the number of 132 // Performs a find in the page of the specified tab. Returns the number of
133 // matches found. |ordinal| is an optional parameter which is set to the index 133 // matches found. |ordinal| is an optional parameter which is set to the index
134 // of the current match. |selection_rect| is an optional parameter which is set 134 // of the current match. |selection_rect| is an optional parameter which is set
135 // to the location of the current match. 135 // to the location of the current match.
136 int FindInPage(content::WebContents* tab, 136 int FindInPage(content::WebContents* tab,
137 const string16& search_string, 137 const base::string16& search_string,
138 bool forward, 138 bool forward,
139 bool case_sensitive, 139 bool case_sensitive,
140 int* ordinal, 140 int* ordinal,
141 gfx::Rect* selection_rect); 141 gfx::Rect* selection_rect);
142 142
143 // Blocks until |service| finishes loading. 143 // Blocks until |service| finishes loading.
144 void WaitForTemplateURLServiceToLoad(TemplateURLService* service); 144 void WaitForTemplateURLServiceToLoad(TemplateURLService* service);
145 145
146 // Blocks until the |history_service|'s history finishes loading. 146 // Blocks until the |history_service|'s history finishes loading.
147 void WaitForHistoryToLoad(HistoryService* history_service); 147 void WaitForHistoryToLoad(HistoryService* history_service);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 std::vector<GURL> urls_; 302 std::vector<GURL> urls_;
303 303
304 CancelableRequestConsumer consumer_; 304 CancelableRequestConsumer consumer_;
305 305
306 DISALLOW_COPY_AND_ASSIGN(HistoryEnumerator); 306 DISALLOW_COPY_AND_ASSIGN(HistoryEnumerator);
307 }; 307 };
308 308
309 } // namespace ui_test_utils 309 } // namespace ui_test_utils
310 310
311 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ 311 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile_manager.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698