chromium/ui/events/test/test_event_source.h

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

#ifndef UI_EVENTS_TEST_TEST_EVENT_SOURCE_H_
#define UI_EVENTS_TEST_TEST_EVENT_SOURCE_H_

#include "base/memory/raw_ptr.h"
#include "ui/events/event_sink.h"
#include "ui/events/event_source.h"

namespace ui {
namespace test {

// Trivial testing EventSource that does nothing but send and count events.
// If no sink is provided, it acts as its own sink, which also counts events.
class TestEventSource : public EventSource, public EventSink {};

}  // namespace test
}  // namespace ui

#endif  // UI_EVENTS_TEST_TEST_EVENT_SOURCE_H_