#include <tuple>
#include "base/command_line.h"
#include "base/json/json_reader.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/bind.h"
#include "build/build_config.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_gesture_controller.h"
#include "content/common/input/synthetic_gesture_target.h"
#include "content/common/input/synthetic_pointer_driver.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/shell/browser/shell.h"
#include "content/shell/common/shell_switches.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/blink/blink_features.h"
#include "ui/events/keycodes/dom/keycode_converter.h"
namespace {
const std::string kEventListenerDataURL = …;
}
namespace content {
class InputEventBrowserTest : public ContentBrowserTest { … };
#if BUILDFLAG(IS_ANDROID)
#define MAYBE_MouseDownEventTimeStamp …
#else
#define MAYBE_MouseDownEventTimeStamp …
#endif
IN_PROC_BROWSER_TEST_F(InputEventBrowserTest, MAYBE_MouseDownEventTimeStamp) { … }
IN_PROC_BROWSER_TEST_F(InputEventBrowserTest, KeyDownEventTimeStamp) { … }
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#define MAYBE_TouchStartEventTimeStamp …
#else
#define MAYBE_TouchStartEventTimeStamp …
#endif
IN_PROC_BROWSER_TEST_F(InputEventBrowserTest, MAYBE_TouchStartEventTimeStamp) { … }
IN_PROC_BROWSER_TEST_F(InputEventBrowserTest, ClickEventTimeStamp) { … }
IN_PROC_BROWSER_TEST_F(InputEventBrowserTest, WheelEventTimeStamp) { … }
}