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

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

Issue 10592022: Get rid of the multiple includes of browser_action_test_util files in browser.lib and browser_tests… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // thread |thread_id| have been processed. 106 // thread |thread_id| have been processed.
107 void RunAllPendingInMessageLoop(content::BrowserThread::ID thread_id); 107 void RunAllPendingInMessageLoop(content::BrowserThread::ID thread_id);
108 108
109 // Puts the current tab title in |title|. Returns true on success. 109 // Puts the current tab title in |title|. Returns true on success.
110 bool GetCurrentTabTitle(const Browser* browser, string16* title); 110 bool GetCurrentTabTitle(const Browser* browser, string16* title);
111 111
112 // Waits for a new tab to be added to |browser|. TODO(gbillock): remove this 112 // Waits for a new tab to be added to |browser|. TODO(gbillock): remove this
113 // race hazard. Use WindowedNotificationObserver instead. 113 // race hazard. Use WindowedNotificationObserver instead.
114 void WaitForNewTab(Browser* browser); 114 void WaitForNewTab(Browser* browser);
115 115
116 // Waits for a |browser_action| to be updated. TODO(gbillock): remove this race
117 // hazard. Use WindowedNotificationObserver instead.
118 void WaitForBrowserActionUpdated(ExtensionAction* browser_action);
119
120 // Waits for a load stop for the specified |tab|'s controller, if the tab is 116 // Waits for a load stop for the specified |tab|'s controller, if the tab is
121 // currently loading. Otherwise returns immediately. 117 // currently loading. Otherwise returns immediately.
122 void WaitForLoadStop(content::WebContents* tab); 118 void WaitForLoadStop(content::WebContents* tab);
123 119
124 // Waits for a new browser to be created, returning the browser. 120 // Waits for a new browser to be created, returning the browser.
125 // TODO(dubroy): Remove this race hazard (http://crbug.com/119521). 121 // TODO(dubroy): Remove this race hazard (http://crbug.com/119521).
126 // Use BrowserAddedObserver instead. 122 // Use BrowserAddedObserver instead.
127 Browser* WaitForNewBrowser(); 123 Browser* WaitForNewBrowser();
128 124
129 // Opens |url| in an incognito browser window with the incognito profile of 125 // Opens |url| in an incognito browser window with the incognito profile of
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 // ui_controls_linux.cc and ui_controls_mac.cc 689 // ui_controls_linux.cc and ui_controls_mac.cc
694 void ClickTask(ui_controls::MouseButton button, 690 void ClickTask(ui_controls::MouseButton button,
695 int state, 691 int state,
696 const base::Closure& followup); 692 const base::Closure& followup);
697 693
698 } // namespace internal 694 } // namespace internal
699 695
700 } // namespace ui_test_utils 696 } // namespace ui_test_utils
701 697
702 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ 698 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698