1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/events/test/events_test_utils.h"
7 #include "ui/events/event_source.h"
11 EventTestApi::EventTestApi(Event
* event
) : event_(event
) {}
12 EventTestApi::~EventTestApi() {}
14 LocatedEventTestApi::LocatedEventTestApi(LocatedEvent
* event
)
15 : EventTestApi(event
),
16 located_event_(event
) {}
17 LocatedEventTestApi::~LocatedEventTestApi() {}
19 KeyEventTestApi::KeyEventTestApi(KeyEvent
* event
)
20 : EventTestApi(event
),
22 KeyEventTestApi::~KeyEventTestApi() {}
24 EventTargetTestApi::EventTargetTestApi(EventTarget
* target
)
27 EventSourceTestApi::EventSourceTestApi(EventSource
* event_source
)
28 : event_source_(event_source
) {
32 EventDispatchDetails
EventSourceTestApi::SendEventToProcessor(Event
* event
) {
33 return event_source_
->SendEventToProcessor(event
);