#include "content/browser/renderer_host/render_widget_host_view_child_frame.h"
#include <stdint.h>
#include <memory>
#include <tuple>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "components/viz/common/surfaces/parent_local_surface_id_allocator.h"
#include "components/viz/test/begin_frame_args_test.h"
#include "components/viz/test/fake_external_begin_frame_source.h"
#include "content/browser/gpu/compositor_util.h"
#include "content/browser/renderer_host/cross_process_frame_connector.h"
#include "content/browser/renderer_host/frame_token_message_queue.h"
#include "content/browser/renderer_host/frame_tree.h"
#include "content/browser/renderer_host/render_widget_host_delegate.h"
#include "content/browser/renderer_host/render_widget_host_factory.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/site_instance_group.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/fake_frame_widget.h"
#include "content/public/test/mock_render_process_host.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_image_transport_factory.h"
#include "content/public/test/test_web_contents_factory.h"
#include "content/test/mock_render_widget_host_delegate.h"
#include "content/test/mock_widget.h"
#include "content/test/test_render_view_host.h"
#include "content/test/test_render_widget_host.h"
#include "content/test/test_web_contents.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/frame/frame_visual_properties.h"
#include "third_party/blink/public/common/input/synthetic_web_input_event_builders.h"
#include "ui/base/ui_base_features.h"
#include "ui/compositor/compositor.h"
namespace content {
namespace {
const viz::LocalSurfaceId kArbitraryLocalSurfaceId(
1,
base::UnguessableToken::CreateForTesting(2, 3));
}
class MockFrameConnector : public CrossProcessFrameConnector { … };
class RenderWidgetHostViewChildFrameTest
: public RenderViewHostImplTestHarness { … };
TEST_F(RenderWidgetHostViewChildFrameTest, VisibilityTest) { … }
TEST_F(RenderWidgetHostViewChildFrameTest, ViewportIntersectionUpdated) { … }
TEST_F(RenderWidgetHostViewChildFrameTest, CompositorViewportPixelSize) { … }
TEST_F(RenderWidgetHostViewChildFrameTest,
SynchronizeVisualPropertiesOncePerChange) { … }
TEST_F(RenderWidgetHostViewChildFrameTest, UncomsumedGestureScrollBubbled) { … }
TEST_F(RenderWidgetHostViewChildFrameTest, ConsumedGestureScrollNotBubbled) { … }
TEST_F(RenderWidgetHostViewChildFrameTest,
DoNotBubbleRemainingEventsOfRejectedScrollGesture) { … }
}