#include "content/browser/renderer_host/render_widget_host_view_child_frame.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/logging.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_timeouts.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "components/viz/common/surfaces/surface_id.h"
#include "content/browser/renderer_host/frame_tree_node.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "content/public/test/content_browser_test.h"
#include "content/public/test/content_browser_test_utils.h"
#include "content/public/test/test_navigation_observer.h"
#include "content/public/test/test_utils.h"
#include "content/shell/browser/shell.h"
#include "content/test/content_browser_test_utils_internal.h"
#include "content/test/test_content_browser_client.h"
#include "net/dns/mock_host_resolver.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/blink/public/common/features.h"
#include "ui/gfx/geometry/size.h"
namespace content {
namespace {
class RenderWidgetHostViewChildFrameBrowserTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewChildFrameBrowserTest, Screen) { … }
class AutoResizeWebContentsDelegate : public WebContentsDelegate { … };
#if BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX)
#define MAYBE_VisualPropertiesPropagation_VisibleViewportSize …
#else
#define MAYBE_VisualPropertiesPropagation_VisibleViewportSize …
#endif
IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewChildFrameBrowserTest,
MAYBE_VisualPropertiesPropagation_VisibleViewportSize) { … }
IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewChildFrameBrowserTest,
PresentationFeedback) { … }
class DisplayModeControllingWebContentsDelegate : public WebContentsDelegate { … };
IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewChildFrameBrowserTest,
VisualPropertiesPropagation_DisplayMode) { … }
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
BUILDFLAG(IS_ANDROID)
#define MAYBE_VisualPropertiesPropagation_RootViewportSegments …
#else
#define MAYBE_VisualPropertiesPropagation_RootViewportSegments …
#endif
IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewChildFrameBrowserTest,
MAYBE_VisualPropertiesPropagation_RootViewportSegments) { … }
IN_PROC_BROWSER_TEST_F(RenderWidgetHostViewChildFrameBrowserTest,
SetTextDirection) { … }
}
}