#include "ui/ozone/platform/x11/x11_screen_ozone.h"
#include <memory>
#include "base/test/task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/x/x11_display_manager.h"
#include "ui/display/display.h"
#include "ui/display/display_observer.h"
#include "ui/events/platform/x11/x11_event_source.h"
#include "ui/gfx/font_render_params.h"
#include "ui/ozone/platform/x11/x11_window.h"
#include "ui/ozone/platform/x11/x11_window_manager.h"
#include "ui/ozone/test/mock_platform_window_delegate.h"
#include "ui/platform_window/platform_window_delegate.h"
#include "ui/platform_window/platform_window_init_properties.h"
_;
namespace ui {
namespace {
constexpr gfx::Rect kPrimaryDisplayBounds(0, 0, 800, 600);
constexpr int64_t kFirstDisplay = …;
constexpr int64_t kSecondDisplay = …;
ACTION_P(StoreWidget, widget_ptr) { … }
int64_t NextDisplayId() { … }
struct MockDisplayObserver : public display::DisplayObserver { … };
}
class X11ScreenOzoneTest : public testing::Test { … };
TEST_F(X11ScreenOzoneTest, AddRemoveListDisplays) { … }
TEST_F(X11ScreenOzoneTest, GetDisplayForWidgetSingleDisplay) { … }
TEST_F(X11ScreenOzoneTest, GetDisplayForWidgetTwoDisplays) { … }
TEST_F(X11ScreenOzoneTest, GetDisplayNearestPointTwoDisplays) { … }
TEST_F(X11ScreenOzoneTest, GetDisplayMatchingMultiple) { … }
TEST_F(X11ScreenOzoneTest, BoundsChangeSingleMonitor) { … }
TEST_F(X11ScreenOzoneTest, AddMonitorToTheRight) { … }
TEST_F(X11ScreenOzoneTest, AddMonitorToTheLeft) { … }
TEST_F(X11ScreenOzoneTest, RemoveMonitorOnRight) { … }
TEST_F(X11ScreenOzoneTest, RemoveMonitorOnLeft) { … }
TEST_F(X11ScreenOzoneTest, GetDisplayNearestPoint) { … }
TEST_F(X11ScreenOzoneTest, GetDisplayMatchingBasic) { … }
TEST_F(X11ScreenOzoneTest, GetDisplayMatchingOverlap) { … }
TEST_F(X11ScreenOzoneTest, GetPrimaryDisplay) { … }
TEST_F(X11ScreenOzoneTest, GetDisplayNearestWindow) { … }
TEST_F(X11ScreenOzoneTest, RotationChange) { … }
TEST_F(X11ScreenOzoneTest, WorkareaChange) { … }
TEST_F(X11ScreenOzoneTest, DeviceScaleFactorChange) { … }
}