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

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

Issue 160206: Fix focus bug when reloading crashed tab (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_UI_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_UI_TEST_UTILS_H_
6 #define CHROME_TEST_UI_TEST_UTILS_H_ 6 #define CHROME_TEST_UI_TEST_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "chrome/common/notification_observer.h" 12 #include "chrome/common/notification_observer.h"
13 13
14 class AppModalDialog; 14 class AppModalDialog;
15 class Browser; 15 class Browser;
16 class DownloadManager; 16 class DownloadManager;
17 class GURL; 17 class GURL;
18 class NavigationController; 18 class NavigationController;
19 class RenderViewHost; 19 class RenderViewHost;
20 class TabContents;
20 class Value; 21 class Value;
21 22
22 // A collections of functions designed for use with InProcessBrowserTest. 23 // A collections of functions designed for use with InProcessBrowserTest.
23 namespace ui_test_utils { 24 namespace ui_test_utils {
24 25
25 // Turns on nestable tasks, runs the message loop, then resets nestable tasks 26 // Turns on nestable tasks, runs the message loop, then resets nestable tasks
26 // to what they were originally. Prefer this over MessageLoop::Run for in 27 // to what they were originally. Prefer this over MessageLoop::Run for in
27 // process browser tests that need to block until a condition is met. 28 // process browser tests that need to block until a condition is met.
28 void RunMessageLoop(); 29 void RunMessageLoop();
29 30
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 84
84 GURL GetTestUrl(const std::wstring& dir, const std::wstring file); 85 GURL GetTestUrl(const std::wstring& dir, const std::wstring file);
85 86
86 // Creates an observer that waits for |download_manager| to report that it 87 // Creates an observer that waits for |download_manager| to report that it
87 // has a total of |count| downloads that have been handles 88 // has a total of |count| downloads that have been handles
88 void WaitForDownloadCount(DownloadManager* download_manager, size_t count); 89 void WaitForDownloadCount(DownloadManager* download_manager, size_t count);
89 90
90 // Blocks until an application modal dialog is showns and returns it. 91 // Blocks until an application modal dialog is showns and returns it.
91 AppModalDialog* WaitForAppModalDialog(); 92 AppModalDialog* WaitForAppModalDialog();
92 93
94 // Causes the specified tab to crash. Blocks until it is crashed.
95 void CrashTab(TabContents* tab);
93 } 96 }
94 97
95 #endif // CHROME_TEST_UI_TEST_UTILS_H_ 98 #endif // CHROME_TEST_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/tab_contents/tab_contents_view_win.cc ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698