#include "base/strings/stringprintf.h"
#include "components/ui_devtools/ui_devtools_unittest_utils.h"
#include "components/ui_devtools/ui_element.h"
#include "components/ui_devtools/views/dom_agent_views.h"
#include "components/ui_devtools/views/overlay_agent_views.h"
#include "components/ui_devtools/views/view_element.h"
#include "components/ui_devtools/views/widget_element.h"
#include "ui/events/base_event_utils.h"
#include "ui/events/event_constants.h"
#include "ui/events/test/event_generator.h"
#include "ui/events/types/event_type.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/view_utils.h"
#include "ui/views/widget/widget_utils.h"
#include "ui/views/window/non_client_view.h"
#if defined(USE_AURA)
#include "components/ui_devtools/views/window_element.h"
#include "ui/aura/env.h"
#include "ui/aura/test/test_window_delegate.h"
#include "ui/aura/window.h"
#endif
namespace ui_devtools {
namespace {
gfx::Point GetOriginInScreen(views::View* view) { … }
}
class OverlayAgentTest : public views::ViewsTestBase { … };
#if defined(USE_AURA)
TEST_F(OverlayAgentTest, FindElementIdTargetedByPointWindow) { … }
#endif
TEST_F(OverlayAgentTest, FindElementIdTargetedByPointViews) { … }
TEST_F(OverlayAgentTest, HighlightRects) { … }
TEST_F(OverlayAgentTest, MouseEventsGenerateFEEventsInInspectMode) { … }
TEST_F(OverlayAgentTest, HighlightNonexistentNode) { … }
#if defined(USE_AURA)
TEST_F(OverlayAgentTest, HighlightWindow) { … }
TEST_F(OverlayAgentTest, HighlightEmptyOrInvisibleWindow) { … }
#endif
TEST_F(OverlayAgentTest, HighlightWidget) { … }
}