summaryrefslogtreecommitdiffstats
path: root/ui/events/test/platform_event_source_test_api.cc
blob: a54bfe813b4046dfe5acf12839daa9947b03b73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/events/test/platform_event_source_test_api.h"

#include "ui/events/platform/platform_event_source.h"

namespace ui {
namespace test {

PlatformEventSourceTestAPI::PlatformEventSourceTestAPI(
    PlatformEventSource* event_source)
    : event_source_(event_source) {}

PlatformEventSourceTestAPI::~PlatformEventSourceTestAPI() {}

void PlatformEventSourceTestAPI::Dispatch(PlatformEvent platform_event) {
  event_source_->DispatchEvent(platform_event);
}

}  // namespace test
}  // namespace ui