Chromium Code Reviews| 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. |
| // |