chromium/ui/aura/window_targeter_unittest.cc

// Copyright 2013 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/aura/window_targeter.h"

#include <utility>

#include "base/memory/raw_ptr.h"
#include "ui/aura/scoped_window_targeter.h"
#include "ui/aura/test/aura_test_base.h"
#include "ui/aura/test/test_window_delegate.h"
#include "ui/aura/window.h"
#include "ui/compositor/layer.h"
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/events/event_utils.h"
#include "ui/events/test/test_event_handler.h"

namespace aura {

// Always returns the same window.
class StaticWindowTargeter : public WindowTargeter {};

gfx::RectF GetEffectiveVisibleBoundsInRootWindow(Window* window) {}

WindowTargeterTest;

TEST_F(WindowTargeterTest, Basic) {}

TEST_F(WindowTargeterTest, FindTargetInRootWindow) {}

TEST_F(WindowTargeterTest, ScopedWindowTargeter) {}

// Test that ScopedWindowTargeter does not crash if the window for which it
// replaces the targeter gets destroyed before it does.
TEST_F(WindowTargeterTest, ScopedWindowTargeterWindowDestroyed) {}

TEST_F(WindowTargeterTest, TargetTransformedWindow) {}

class IdCheckingEventTargeter : public WindowTargeter {};

TEST_F(WindowTargeterTest, Bounds) {}

TEST_F(WindowTargeterTest, NonFullyContainedBounds) {}

TEST_F(WindowTargeterTest, NonFullyContainedBoundsWithMasksToBounds) {}

class IgnoreWindowTargeter : public WindowTargeter {};

// Verifies that an EventTargeter installed on an EventTarget can dictate
// whether the target itself can process an event.
TEST_F(WindowTargeterTest, TargeterChecksOwningEventTarget) {}

}  // namespace aura