#include "third_party/blink/renderer/core/events/web_input_event_conversion.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/web/web_frame.h"
#include "third_party/blink/public/web/web_settings.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_keyboard_event_init.h"
#include "third_party/blink/renderer/core/events/gesture_event.h"
#include "third_party/blink/renderer/core/events/keyboard_event.h"
#include "third_party/blink/renderer/core/events/mouse_event.h"
#include "third_party/blink/renderer/core/events/touch_event.h"
#include "third_party/blink/renderer/core/events/wheel_event.h"
#include "third_party/blink/renderer/core/exported/web_view_impl.h"
#include "third_party/blink/renderer/core/frame/frame_test_helpers.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/frame/visual_viewport.h"
#include "third_party/blink/renderer/core/frame/web_local_frame_impl.h"
#include "third_party/blink/renderer/core/input/touch.h"
#include "third_party/blink/renderer/core/input/touch_list.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
#include "ui/gfx/geometry/point_conversions.h"
#include "ui/gfx/geometry/size.h"
namespace blink {
namespace {
KeyboardEvent* CreateKeyboardEventWithLocation(
KeyboardEvent::KeyLocationCode location) { … }
int GetModifiersForKeyLocationCode(KeyboardEvent::KeyLocationCode location) { … }
void RegisterMockedURL(const std::string& base_url,
const std::string& file_name) { … }
class WebInputEventConversionTest : public testing::Test { … };
TEST_F(WebInputEventConversionTest, WebKeyboardEventBuilder) { … }
TEST_F(WebInputEventConversionTest, WebMouseEventBuilder) { … }
TEST_F(WebInputEventConversionTest, InputEventsScaling) { … }
TEST_F(WebInputEventConversionTest, InputEventsTransform) { … }
TEST_F(WebInputEventConversionTest, InputEventsConversions) { … }
TEST_F(WebInputEventConversionTest, VisualViewportOffset) { … }
TEST_F(WebInputEventConversionTest, ElasticOverscroll) { … }
TEST_F(WebInputEventConversionTest, ElasticOverscrollWithPageReload) { … }
}
}