#include "components/performance_manager/graph/frame_node_impl.h"
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/performance_manager_impl.h"
#include "components/performance_manager/public/graph/page_node.h"
#include "components/performance_manager/test_support/run_in_graph.h"
#include "content/public/test/back_forward_cache_util.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/prerender_test_util.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/rect_f.h"
namespace performance_manager {
_;
namespace {
void SimulateKeyPress(content::WebContents* web_contents) { … }
class FrameNodeImplBrowserTest : public InProcessBrowserTest { … };
template <typename DerivedType>
DerivedType* PassToPMGraph(std::unique_ptr<DerivedType> graph_owned) { … }
class ViewportIntersectionStateChangedObserver
: public GraphOwned,
public FrameNode::ObserverDefaultImpl { … };
}
IN_PROC_BROWSER_TEST_F(FrameNodeImplBrowserTest,
ViewportIntersection_OutOfView) { … }
IN_PROC_BROWSER_TEST_F(FrameNodeImplBrowserTest, ViewportIntersection_Hidden) { … }
IN_PROC_BROWSER_TEST_F(FrameNodeImplBrowserTest,
ViewportIntersection_PartiallyVisible) { … }
IN_PROC_BROWSER_TEST_F(FrameNodeImplBrowserTest, ViewportIntersection_Scaled) { … }
IN_PROC_BROWSER_TEST_F(FrameNodeImplBrowserTest, ViewportIntersection_Rotated) { … }
class MockFrameNodeObserver : public FrameNode::ObserverDefaultImpl { … };
IN_PROC_BROWSER_TEST_F(FrameNodeImplBrowserTest, Bind_SimpleNavigation) { … }
class FrameNodeImplBackForwardCacheBrowserTest
: public FrameNodeImplBrowserTest { … };
IN_PROC_BROWSER_TEST_F(FrameNodeImplBackForwardCacheBrowserTest,
Bind_BackForwardCache) { … }
class FrameNodeImplPrerenderBrowserTest : public FrameNodeImplBrowserTest { … };
IN_PROC_BROWSER_TEST_F(FrameNodeImplPrerenderBrowserTest,
DISABLED_Bind_PrerenderNavigation) { … }
}