mock_usb_service.h 664 B

12345678910111213141516171819202122232425
  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.
  4. #ifndef SERVICES_DEVICE_USB_MOCK_USB_SERVICE_H_
  5. #define SERVICES_DEVICE_USB_MOCK_USB_SERVICE_H_
  6. #include "services/device/usb/usb_service.h"
  7. #include "testing/gmock/include/gmock/gmock.h"
  8. namespace device {
  9. class MockUsbService : public UsbService {
  10. public:
  11. MockUsbService();
  12. ~MockUsbService() override;
  13. void AddDevice(scoped_refptr<UsbDevice> device);
  14. void RemoveDevice(scoped_refptr<UsbDevice> device);
  15. };
  16. } // namespace device
  17. #endif // SERVICES_DEVICE_USB_MOCK_USB_SERVICE_H_