#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/common/features.h"
#include "content/common/input/synthetic_pinch_gesture_params.h"
#include "content/common/input/synthetic_touchpad_pinch_gesture.h"
#include "content/public/browser/render_view_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/hit_test_region_observer.h"
#include "content/public/test/test_utils.h"
#include "content/shell/browser/shell.h"
#include "third_party/blink/public/common/web_preferences/web_preferences.h"
namespace content {
namespace {
const char kTouchpadPinchDataURL[] = …;
void PerformTouchpadPinch(WebContents* web_contents,
gfx::PointF position,
float scale_factor) { … }
}
class TouchpadPinchBrowserTest : public ContentBrowserTest { … };
IN_PROC_BROWSER_TEST_F(TouchpadPinchBrowserTest,
TouchpadPinchChangesPageScale) { … }
IN_PROC_BROWSER_TEST_F(TouchpadPinchBrowserTest, WheelListenerAllowingPinch) { … }
void TouchpadPinchBrowserTest::EnsureNoScaleChangeWhenCanceled(
base::OnceCallback<void(WebContents*, gfx::PointF)> send_events) { … }
IN_PROC_BROWSER_TEST_F(TouchpadPinchBrowserTest, WheelListenerPreventingPinch) { … }
IN_PROC_BROWSER_TEST_F(TouchpadPinchBrowserTest,
WheelListenerPreventingDoubleTap) { … }
}