#include "ui/wm/core/capture_controller.h"
#include <memory>
#include <utility>
#include "base/memory/raw_ptr.h"
#include "ui/aura/client/capture_delegate.h"
#include "ui/aura/env.h"
#include "ui/aura/test/aura_test_base.h"
#include "ui/aura/test/test_screen.h"
#include "ui/aura/test/test_window_delegate.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
#include "ui/aura/window_tracker.h"
#include "ui/events/event.h"
#include "ui/events/event_utils.h"
#include "ui/events/test/event_generator.h"
#include "ui/platform_window/platform_window_init_properties.h"
#include "ui/wm/core/capture_controller.h"
namespace wm {
namespace {
class TestCaptureDelegate : public aura::client::CaptureDelegate { … };
}
class CaptureControllerTest : public aura::test::AuraTestBase { … };
TEST_F(CaptureControllerTest, ResetMouseEventHandlerOnCapture) { … }
TEST_F(CaptureControllerTest, ResetOtherWindowCaptureOnCapture) { … }
TEST_F(CaptureControllerTest, TouchTargetResetOnCaptureChange) { … }
TEST_F(CaptureControllerTest, ReparentedWhileCaptured) { … }
TEST_F(CaptureControllerTest, PrepareForShutdown) { … }
class GestureEventDeleteWindowOnScrollEnd
: public aura::test::TestWindowDelegate { … };
TEST_F(CaptureControllerTest, GestureResetWithCapture) { … }
TEST_F(CaptureControllerTest, UpdateCaptureDestroysOldCaptureWindow) { … }
}