Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: ui/events/test/events_test_utils.cc

Issue 250953002: Changing aura::test::EventGenerator to send events through EventSource instead of through EventProc… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get_event_source
Patch Set: Added WARN_UNUSED_RESULT Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/events/test/events_test_utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/test/events_test_utils.h" 5 #include "ui/events/test/events_test_utils.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 EventTestApi::EventTestApi(Event* event) : event_(event) {} 9 EventTestApi::EventTestApi(Event* event) : event_(event) {}
10 EventTestApi::~EventTestApi() {} 10 EventTestApi::~EventTestApi() {}
11 11
12 LocatedEventTestApi::LocatedEventTestApi(LocatedEvent* event) 12 LocatedEventTestApi::LocatedEventTestApi(LocatedEvent* event)
13 : EventTestApi(event), 13 : EventTestApi(event),
14 located_event_(event) {} 14 located_event_(event) {}
15 LocatedEventTestApi::~LocatedEventTestApi() {} 15 LocatedEventTestApi::~LocatedEventTestApi() {}
16 16
17 EventTargetTestApi::EventTargetTestApi(EventTarget* target) 17 EventTargetTestApi::EventTargetTestApi(EventTarget* target)
18 : target_(target) {} 18 : target_(target) {}
19 19
20 EventSourceTestApi::EventSourceTestApi(EventSource* event_source)
21 : event_source_(event_source) {
22 DCHECK(event_source);
23 }
24
25 EventDispatchDetails EventSourceTestApi::SendEventToProcessor(Event* event) {
26 return event_source_->SendEventToProcessor(event);
27 }
28
20 } // namespace ui 29 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/test/events_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698