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

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

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, 7 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/event_source.h ('k') | ui/events/test/events_test_utils.cc » ('j') | 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 #ifndef UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ 5 #ifndef UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_
6 #define UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ 6 #define UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_
7 7
8 #include "ui/events/event.h" 8 #include "ui/events/event.h"
9 #include "ui/events/event_source.h"
9 #include "ui/events/event_target.h" 10 #include "ui/events/event_target.h"
10 11
11 namespace ui { 12 namespace ui {
12 13
13 class EventTestApi { 14 class EventTestApi {
14 public: 15 public:
15 explicit EventTestApi(Event* event); 16 explicit EventTestApi(Event* event);
16 virtual ~EventTestApi(); 17 virtual ~EventTestApi();
17 18
18 void set_time_stamp(base::TimeDelta time_stamp) { 19 void set_time_stamp(base::TimeDelta time_stamp) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 54 }
54 55
55 private: 56 private:
56 EventTargetTestApi(); 57 EventTargetTestApi();
57 58
58 EventTarget* target_; 59 EventTarget* target_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(EventTargetTestApi); 61 DISALLOW_COPY_AND_ASSIGN(EventTargetTestApi);
61 }; 62 };
62 63
64 class EventSourceTestApi {
65 public:
66 explicit EventSourceTestApi(EventSource* event_source);
67
68 EventDispatchDetails SendEventToProcessor(Event* event) WARN_UNUSED_RESULT;
69
70 private:
71 EventSourceTestApi();
72
73 EventSource* event_source_;
74
75 DISALLOW_COPY_AND_ASSIGN(EventSourceTestApi);
76 };
77
63 } // namespace ui 78 } // namespace ui
64 79
65 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ 80 #endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « ui/events/event_source.h ('k') | ui/events/test/events_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698