blob: 234c6b697ae24a08901e8fcff6deea8a1ee32e64 [file] [log] [blame]
// Copyright 2018 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.
#ifndef SERVICES_DEVICE_SERIAL_FAKE_SERIAL_DEVICE_ENUMERATOR_H_
#define SERVICES_DEVICE_SERIAL_FAKE_SERIAL_DEVICE_ENUMERATOR_H_
#include <map>
#include "base/files/file_path.h"
#include "base/macros.h"
#include "services/device/serial/serial_device_enumerator.h"
namespace device {
class FakeSerialEnumerator : public SerialDeviceEnumerator {
public:
FakeSerialEnumerator();
~FakeSerialEnumerator() override;
void AddDevicePath(const base::FilePath& path);
void RemoveDevicePath(const base::FilePath& path);
private:
std::map<base::FilePath, base::UnguessableToken> paths_;
DISALLOW_COPY_AND_ASSIGN(FakeSerialEnumerator);
};
} // namespace device
#endif // SERVICES_DEVICE_SERIAL_FAKE_SERIAL_DEVICE_ENUMERATOR_H_