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

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

Issue 151189: reenable RenderViewHostManager browertest, add DownloadsCompleteObserver (Closed)
Patch Set: oops 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
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 "chrome/common/notification_observer.h" 11 #include "chrome/common/notification_observer.h"
12 12
13 class Browser; 13 class Browser;
14 class DownloadManager;
14 class GURL; 15 class GURL;
15 class NavigationController; 16 class NavigationController;
16 class Value; 17 class Value;
17 class TabContents; 18 class TabContents;
18 19
19 // A collections of functions designed for use with InProcessBrowserTest. 20 // A collections of functions designed for use with InProcessBrowserTest.
20 namespace ui_test_utils { 21 namespace ui_test_utils {
21 22
22 // Turns on nestable tasks, runs the message loop, then resets nestable tasks 23 // Turns on nestable tasks, runs the message loop, then resets nestable tasks
23 // to what they were originally. Prefer this over MessageLoop::Run for in 24 // to what they were originally. Prefer this over MessageLoop::Run for in
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool ExecuteJavaScriptAndExtractBool(TabContents* tab_contents, 66 bool ExecuteJavaScriptAndExtractBool(TabContents* tab_contents,
66 const std::wstring& frame_xpath, 67 const std::wstring& frame_xpath,
67 const std::wstring& script, 68 const std::wstring& script,
68 bool* result); 69 bool* result);
69 bool ExecuteJavaScriptAndExtractString(TabContents* tab_contents, 70 bool ExecuteJavaScriptAndExtractString(TabContents* tab_contents,
70 const std::wstring& frame_xpath, 71 const std::wstring& frame_xpath,
71 const std::wstring& script, 72 const std::wstring& script,
72 std::string* result); 73 std::string* result);
73 74
74 GURL GetTestUrl(const std::wstring& dir, const std::wstring file); 75 GURL GetTestUrl(const std::wstring& dir, const std::wstring file);
76
77 // Creates an observer that waits for |download_manager| to report that it
78 // has a total of |count| downloads that have been handles
79 void WaitForDownloadCount(DownloadManager* download_manager, size_t count);
75 } 80 }
76 81
77 #endif // CHROME_TEST_UI_TEST_UTILS_H_ 82 #endif // CHROME_TEST_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_manager_browsertest.cc ('k') | chrome/test/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698