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. 4 5 #include "ui/events/test/events_test_utils.h" 6 7 #include "ui/events/event_source.h" 8 9 namespace ui { 10 EventTestApi(Event * event)11EventTestApi::EventTestApi(Event* event) : event_(event) {} ~EventTestApi()12EventTestApi::~EventTestApi() {} 13 LocatedEventTestApi(LocatedEvent * event)14LocatedEventTestApi::LocatedEventTestApi(LocatedEvent* event) 15 : EventTestApi(event), 16 located_event_(event) {} ~LocatedEventTestApi()17LocatedEventTestApi::~LocatedEventTestApi() {} 18 KeyEventTestApi(KeyEvent * event)19KeyEventTestApi::KeyEventTestApi(KeyEvent* event) 20 : EventTestApi(event), 21 key_event_(event) {} ~KeyEventTestApi()22KeyEventTestApi::~KeyEventTestApi() {} 23 EventTargetTestApi(EventTarget * target)24EventTargetTestApi::EventTargetTestApi(EventTarget* target) 25 : target_(target) {} 26 EventSourceTestApi(EventSource * event_source)27EventSourceTestApi::EventSourceTestApi(EventSource* event_source) 28 : event_source_(event_source) { 29 DCHECK(event_source); 30 } 31 SendEventToProcessor(Event * event)32EventDispatchDetails EventSourceTestApi::SendEventToProcessor(Event* event) { 33 return event_source_->SendEventToProcessor(event); 34 } 35 36 } // namespace ui 37