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

Unified Diff: content/test/content_browser_test_utils_internal.h

Issue 2686683004: ABANDONED CL: WaitForChildFrameSurfaceReady to avoid flaky test hangs. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | content/test/content_browser_test_utils_internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/content_browser_test_utils_internal.h
diff --git a/content/test/content_browser_test_utils_internal.h b/content/test/content_browser_test_utils_internal.h
index bdcbb8dbefb2e446ac18f2b4a9a96b0b0e0b0765..f1e69cab9595294f5c292cf779905c90d2cfd3f1 100644
--- a/content/test/content_browser_test_utils_internal.h
+++ b/content/test/content_browser_test_utils_internal.h
@@ -33,7 +33,6 @@ namespace content {
class FrameTreeNode;
class RenderFrameHost;
-class RenderWidgetHostViewChildFrame;
class Shell;
class SiteInstance;
class ToRenderFrameHost;
@@ -118,27 +117,6 @@ class NavigationStallDelegate : public ResourceDispatcherHostDelegate {
GURL url_;
};
-// Helper class to assist with hit testing surfaces in multiple processes.
-// WaitForSurfaceReady() will only return after a Surface from |target_view|
-// has been composited in the top-level frame's Surface. At that point,
-// browser process hit testing to target_view's Surface can succeed.
-class SurfaceHitTestReadyNotifier {
- public:
- SurfaceHitTestReadyNotifier(RenderWidgetHostViewChildFrame* target_view);
- ~SurfaceHitTestReadyNotifier() {}
-
- void WaitForSurfaceReady();
-
- private:
- bool ContainsSurfaceId(cc::SurfaceId container_surface_id);
-
- cc::SurfaceManager* surface_manager_;
- cc::SurfaceId root_surface_id_;
- RenderWidgetHostViewChildFrame* target_view_;
-
- DISALLOW_COPY_AND_ASSIGN(SurfaceHitTestReadyNotifier);
-};
-
// Helper for mocking choosing a file via a file dialog.
class FileChooserDelegate : public WebContentsDelegate {
public:
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | content/test/content_browser_test_utils_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698