chromium/ui/views/widget/desktop_aura/desktop_window_tree_host_platform_impl_unittest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/views/widget/desktop_aura/desktop_window_tree_host_platform.h"

#include <utility>

#include "base/command_line.h"
#include "ui/aura/native_window_occlusion_tracker.h"
#include "ui/aura/window_tree_host.h"
#include "ui/base/hit_test.h"
#include "ui/base/ui_base_types.h"
#include "ui/compositor/compositor.h"
#include "ui/display/display_switches.h"
#include "ui/platform_window/platform_window.h"
#include "ui/views/test/views_test_base.h"
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
#include "ui/views/widget/widget_delegate.h"

namespace views {

// This tests the wayland and linux(x11) implementation of the
// DesktopWindowTreeHostPlatform.

namespace {
// A NonClientFrameView with a window mask with the bottom right corner cut out.
class ShapedNonClientFrameView : public NonClientFrameView {};

class ShapedWidgetDelegate : public WidgetDelegateView {};

class MouseEventRecorder : public ui::EventHandler {};

}  // namespace

class DesktopWindowTreeHostPlatformImplTest : public ViewsTestBase {};

TEST_F(DesktopWindowTreeHostPlatformImplTest,
       ChildWindowDestructionDuringTearDown) {}

TEST_F(DesktopWindowTreeHostPlatformImplTest, MouseNCEvents) {}

// Checks that the visibility of the content window of
// `DesktopWindowTreeHostPlatform` matches the visibility of the ui compositor.
TEST_F(DesktopWindowTreeHostPlatformImplTest,
       ContentWindowVisibilityMatchesCompositorVisibility) {}

// Checks that a call to `SetZOrderLevel` on a `PlatformWindow` sets the z order
// on the associated `Widget`.
TEST_F(DesktopWindowTreeHostPlatformImplTest,
       SetZOrderCorrectlySetsZOrderOnPlatformWindows) {}

class DesktopWindowTreeHostPlatformImplHighDPITest
    : public DesktopWindowTreeHostPlatformImplTest {};

TEST_F(DesktopWindowTreeHostPlatformImplHighDPITest, MouseNCEvents) {}

}  // namespace views