#include <tuple>
#include <utility>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/numerics/angle_conversions.h"
#include "base/run_loop.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "cc/base/features.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/common/input/synthetic_gesture.h"
#include "content/common/input/synthetic_gesture_params.h"
#include "content/common/input/synthetic_smooth_scroll_gesture.h"
#include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
#include "content/public/browser/render_view_host.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/features.h"
#include "third_party/blink/public/common/switches.h"
namespace {
const char kCompositedScrollingDataURL[] = …;
}
namespace content {
class CompositedScrollingBrowserTest : public ContentBrowserTest { … };
#if BUILDFLAG(IS_MAC) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_WIN)
#define MAYBE_Scroll3DTransformedScroller …
#else
#define MAYBE_Scroll3DTransformedScroller …
#endif
IN_PROC_BROWSER_TEST_F(CompositedScrollingBrowserTest,
MAYBE_Scroll3DTransformedScroller) { … }
static constexpr unsigned kCompositedScroll = …;
static constexpr unsigned kRasterInducingScroll = …;
class CompositedScrollingMetricTest
: public CompositedScrollingBrowserTest,
public testing::WithParamInterface<unsigned> { … };
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_P(CompositedScrollingMetricTest,
RecordCorrectScrollingThread) { … }
IN_PROC_BROWSER_TEST_P(CompositedScrollingMetricTest, BlockingEventHandlers) { … }
#if BUILDFLAG(IS_MAC)
#define MAYBE_PassiveEventHandlers …
#else
#define MAYBE_PassiveEventHandlers …
#endif
IN_PROC_BROWSER_TEST_P(CompositedScrollingMetricTest,
MAYBE_PassiveEventHandlers) { … }
}