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

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

Issue 6730016: Fix flakiness and enable RenderViewHostManagerTest on Linux/Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix additional flakiness. Created 9 years, 9 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) 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_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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // the specified number of navigations complete. 102 // the specified number of navigations complete.
103 void WaitForNavigations(NavigationController* controller, 103 void WaitForNavigations(NavigationController* controller,
104 int number_of_navigations); 104 int number_of_navigations);
105 105
106 // Waits for a new tab to be added to |browser|. 106 // Waits for a new tab to be added to |browser|.
107 void WaitForNewTab(Browser* browser); 107 void WaitForNewTab(Browser* browser);
108 108
109 // Waits for a |browser_action| to be updated. 109 // Waits for a |browser_action| to be updated.
110 void WaitForBrowserActionUpdated(ExtensionAction* browser_action); 110 void WaitForBrowserActionUpdated(ExtensionAction* browser_action);
111 111
112 // Waits for a load stop for the specified |controller|. 112 // Waits for a load stop for the specified |tab|'s controller, if the tab is
113 void WaitForLoadStop(NavigationController* controller); 113 // currently loading.
Paweł Hajdan Jr. 2011/03/25 09:39:42 nit: Please either remove the "if the tab is curre
Charlie Reis 2011/03/25 19:46:03 Done (and landed).
114 void WaitForLoadStop(TabContents* tab);
114 115
115 // Waits for a new browser to be created, returning the browser. 116 // Waits for a new browser to be created, returning the browser.
116 Browser* WaitForNewBrowser(); 117 Browser* WaitForNewBrowser();
117 118
118 // Waits for a new browser to be created, returning the browser. 119 // Waits for a new browser to be created, returning the browser.
119 // Pass in the number of browsers that exist before the navigation starts in 120 // Pass in the number of browsers that exist before the navigation starts in
120 // |start_count|, and it will exit even if the notification occurs before it's 121 // |start_count|, and it will exit even if the notification occurs before it's
121 // called. 122 // called.
122 Browser* WaitForNewBrowserWithCount(size_t start_count); 123 Browser* WaitForNewBrowserWithCount(size_t start_count);
123 124
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 556
556 // Takes a snapshot of the entire page, according to the width and height 557 // Takes a snapshot of the entire page, according to the width and height
557 // properties of the DOM's document. Returns true on success. DOMAutomation 558 // properties of the DOM's document. Returns true on success. DOMAutomation
558 // must be enabled. 559 // must be enabled.
559 bool TakeEntirePageSnapshot(RenderViewHost* rvh, 560 bool TakeEntirePageSnapshot(RenderViewHost* rvh,
560 SkBitmap* bitmap) WARN_UNUSED_RESULT; 561 SkBitmap* bitmap) WARN_UNUSED_RESULT;
561 562
562 } // namespace ui_test_utils 563 } // namespace ui_test_utils
563 564
564 #endif // CHROME_TEST_UI_TEST_UTILS_H_ 565 #endif // CHROME_TEST_UI_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698