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

Unified Diff: content/public/test/browser_test_utils.h

Issue 1852903002: Create an interactive site-per-process browsertest class and move DocumentHasFocus there. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GN Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/public/test/browser_test_utils.h
diff --git a/content/public/test/browser_test_utils.h b/content/public/test/browser_test_utils.h
index a07ed26205bb054dbabac92d274ea4a7bf4134f9..7363dd95fbff8a36aa6d18b77e6a225d9c432319 100644
--- a/content/public/test/browser_test_utils.h
+++ b/content/public/test/browser_test_utils.h
@@ -235,6 +235,10 @@ bool FrameMatchesName(const std::string& name, RenderFrameHost* frame);
bool FrameIsChildOfMainFrame(RenderFrameHost* frame);
bool FrameHasSourceUrl(const GURL& url, RenderFrameHost* frame);
+// Finds the child frame at the specified |index| for |frame| and returns its
+// RenderFrameHost. Returns nullptr if such child frame does not exist.
+RenderFrameHost* ChildFrameAt(RenderFrameHost* frame, size_t index);
alexmos 2016/04/05 16:16:56 I thought this might be useful more generally in p
nasko 2016/04/08 18:29:20 How would that work without access to the FrameTre
alexmos 2016/04/11 18:37:29 Actually, sorry, I misspoke -- I can't put it in s
nasko 2016/04/11 21:56:45 I find the matching by name is a good way to avoid
+
// Executes the WebUI resource test runner injecting each resource ID in
// |js_resource_ids| prior to executing the tests.
//

Powered by Google App Engine
This is Rietveld 408576698