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

Unified 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, 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/events_test_utils.h
diff --git a/ui/events/test/events_test_utils.h b/ui/events/test/events_test_utils.h
index 65ae075589e7dc8b0db6ee40218861ce96b93fdd..62c0ca4fda862be6d8f6d37fffeaff761945f0c0 100644
--- a/ui/events/test/events_test_utils.h
+++ b/ui/events/test/events_test_utils.h
@@ -6,6 +6,7 @@
#define UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_
#include "ui/events/event.h"
+#include "ui/events/event_source.h"
#include "ui/events/event_target.h"
namespace ui {
@@ -60,6 +61,20 @@ class EventTargetTestApi {
DISALLOW_COPY_AND_ASSIGN(EventTargetTestApi);
};
+class EventSourceTestApi {
+ public:
+ explicit EventSourceTestApi(EventSource* event_source);
+
+ EventDispatchDetails SendEventToProcessor(Event* event) WARN_UNUSED_RESULT;
+
+ private:
+ EventSourceTestApi();
+
+ EventSource* event_source_;
+
+ DISALLOW_COPY_AND_ASSIGN(EventSourceTestApi);
+};
+
} // namespace ui
#endif // UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_
« 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