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

Side by Side Diff: content/test/content_browser_test_utils_internal.h

Issue 2052633002: Extend the ToRenderFrameHost magic to FrameTreeNode* and Shell* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix induced script bug. Created 4 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ 5 #ifndef CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_
6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ 6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_
7 7
8 // A collection of functions designed for use with content_shell based browser 8 // A collection of functions designed for use with content_shell based browser
9 // tests internal to the content/ module. 9 // tests internal to the content/ module.
10 // Note: If a function here also works with browser_tests, it should be in 10 // Note: If a function here also works with browser_tests, it should be in
(...skipping 24 matching lines...) Expand all
35 class ToRenderFrameHost; 35 class ToRenderFrameHost;
36 36
37 // Navigates the frame represented by |node| to |url|, blocking until the 37 // Navigates the frame represented by |node| to |url|, blocking until the
38 // navigation finishes. 38 // navigation finishes.
39 void NavigateFrameToURL(FrameTreeNode* node, const GURL& url); 39 void NavigateFrameToURL(FrameTreeNode* node, const GURL& url);
40 40
41 // Sets the DialogManager to proceed by default or not when showing a 41 // Sets the DialogManager to proceed by default or not when showing a
42 // BeforeUnload dialog. 42 // BeforeUnload dialog.
43 void SetShouldProceedOnBeforeUnload(Shell* shell, bool proceed); 43 void SetShouldProceedOnBeforeUnload(Shell* shell, bool proceed);
44 44
45 // Extends the ToRenderFrameHost mechanism to FrameTreeNodes.
46 RenderFrameHost* ConvertToRenderFrameHost(FrameTreeNode* frame_tree_node);
47
45 // Creates compact textual representations of the state of the frame tree that 48 // Creates compact textual representations of the state of the frame tree that
46 // is appropriate for use in assertions. 49 // is appropriate for use in assertions.
47 // 50 //
48 // The diagrams show frame tree structure, the SiteInstance of current frames, 51 // The diagrams show frame tree structure, the SiteInstance of current frames,
49 // presence of pending frames, and the SiteInstances of any and all proxies. 52 // presence of pending frames, and the SiteInstances of any and all proxies.
50 // They look like this: 53 // They look like this:
51 // 54 //
52 // Site A (D pending) -- proxies for B C 55 // Site A (D pending) -- proxies for B C
53 // |--Site B --------- proxies for A C 56 // |--Site B --------- proxies for A C
54 // +--Site C --------- proxies for B A 57 // +--Site C --------- proxies for B A
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 cc::SurfaceManager* surface_manager_; 171 cc::SurfaceManager* surface_manager_;
169 cc::SurfaceId root_surface_id_; 172 cc::SurfaceId root_surface_id_;
170 RenderWidgetHostViewChildFrame* target_view_; 173 RenderWidgetHostViewChildFrame* target_view_;
171 174
172 DISALLOW_COPY_AND_ASSIGN(SurfaceHitTestReadyNotifier); 175 DISALLOW_COPY_AND_ASSIGN(SurfaceHitTestReadyNotifier);
173 }; 176 };
174 177
175 } // namespace content 178 } // namespace content
176 179
177 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ 180 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698