1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SERVICES_DEVICE_SERIAL_FAKE_SERIAL_DEVICE_ENUMERATOR_H_
6 #define SERVICES_DEVICE_SERIAL_FAKE_SERIAL_DEVICE_ENUMERATOR_H_
10 #include "base/files/file_path.h"
11 #include "services/device/serial/serial_device_enumerator.h"
15 class FakeSerialEnumerator : public SerialDeviceEnumerator {
17 FakeSerialEnumerator();
19 FakeSerialEnumerator(const FakeSerialEnumerator&) = delete;
20 FakeSerialEnumerator& operator=(const FakeSerialEnumerator&) = delete;
22 ~FakeSerialEnumerator() override;
24 void AddDevicePath(const base::FilePath& path);
25 void RemoveDevicePath(const base::FilePath& path);
28 std::map<base::FilePath, base::UnguessableToken> paths_;
33 #endif // SERVICES_DEVICE_SERIAL_FAKE_SERIAL_DEVICE_ENUMERATOR_H_