summaryrefslogtreecommitdiffstats
path: root/device/hid/fake_input_service_linux.cc
blob: ae3f0851b813c857e8d4dd7e2b2af2260a2ff48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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 "device/hid/fake_input_service_linux.h"

#include <string>
#include <vector>

namespace device {

FakeInputServiceLinux::FakeInputServiceLinux() {
}

FakeInputServiceLinux::~FakeInputServiceLinux() {
}

void FakeInputServiceLinux::AddDeviceForTesting(const InputDeviceInfo& info) {
  AddDevice(info);
}

void FakeInputServiceLinux::RemoveDeviceForTesting(const std::string& id) {
  RemoveDevice(id);
}

void FakeInputServiceLinux::ClearDeviceList() {
  devices_.clear();
}

}  // namespace device