#include <tuple>
#include <utility>
#include "base/auto_reset.h"
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "components/input/render_widget_host_input_event_router.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/input/synthetic_smooth_scroll_gesture.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/common/content_switches.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/hit_test_region_observer.h"
#include "content/public/test/test_utils.h"
#include "content/shell/browser/shell.h"
#include "third_party/blink/public/common/input/synthetic_web_input_event_builders.h"
#include "third_party/blink/public/common/input/web_input_event.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/event_switches.h"
#include "ui/latency/latency_info.h"
namespace {
const int kWebsiteHeight = …;
const char kCompositorEventAckDataURL[] = …;
const char kPassiveTouchStartBlockingTouchEndDataURL[] = …;
const char kBlockingTouchStartDataURL[] = …;
}
namespace content {
class CompositorEventAckBrowserTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(CompositorEventAckBrowserTest, MouseWheel) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_TouchStart …
#else
#define MAYBE_TouchStart …
#endif
IN_PROC_BROWSER_TEST_F(CompositorEventAckBrowserTest, MAYBE_TouchStart) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_TouchStartDuringFling …
#else
#define MAYBE_TouchStartDuringFling …
#endif
IN_PROC_BROWSER_TEST_F(CompositorEventAckBrowserTest,
MAYBE_TouchStartDuringFling) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_PassiveTouchStartBlockingTouchEnd …
#else
#define MAYBE_PassiveTouchStartBlockingTouchEnd …
#endif
IN_PROC_BROWSER_TEST_F(CompositorEventAckBrowserTest,
MAYBE_PassiveTouchStartBlockingTouchEnd) { … }
}