Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / events / test / platform_event_source_test_api.h
blob803cbc74b9eaa94f83b435bfc863bc08fb9601d0
1 // Copyright 2015 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 #ifndef UI_EVENTS_TEST_PLATFORM_EVENT_SOURCE_TEST_API_H_
6 #define UI_EVENTS_TEST_PLATFORM_EVENT_SOURCE_TEST_API_H_
8 #include "base/macros.h"
9 #include "ui/events/platform/platform_event_types.h"
11 namespace ui {
13 class PlatformEventSource;
15 namespace test {
17 class PlatformEventSourceTestAPI {
18 public:
19 explicit PlatformEventSourceTestAPI(PlatformEventSource* event_source);
20 ~PlatformEventSourceTestAPI();
22 void Dispatch(PlatformEvent platform_event);
24 private:
25 PlatformEventSource* event_source_;
27 DISALLOW_COPY_AND_ASSIGN(PlatformEventSourceTestAPI);
30 } // namespace test
31 } // namespace ui
33 #endif // UI_EVENTS_TEST_PLATFORM_EVENT_SOURCE_TEST_API_H_