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

Unified Diff: content/test/content_browser_test_utils_internal.h

Issue 2786223002: Fix flakiness in DragAndDropBrowserTests (Closed)
Patch Set: Review comments addressed Created 3 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 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 2d0afd5b436a6b7443fcfa366faa3c01f4f43798..29746924f1ff8eaef4cad4364a67b279e9a0341d 100644
--- a/content/test/content_browser_test_utils_internal.h
+++ b/content/test/content_browser_test_utils_internal.h
@@ -25,15 +25,10 @@
#include "content/public/test/browser_test_utils.h"
#include "url/gurl.h"
-namespace cc {
-class SurfaceManager;
-}
-
namespace content {
class FrameTreeNode;
class RenderFrameHost;
-class RenderWidgetHostViewChildFrame;
class Shell;
class SiteInstance;
class ToRenderFrameHost;
@@ -118,27 +113,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(const 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