1 // Copyright 2014 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.
5 #ifndef DEVICE_TEST_USB_TEST_GADGET_H_
6 #define DEVICE_TEST_USB_TEST_GADGET_H_
10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
13 namespace usb_service
{
15 } // namespace usb_service
28 virtual ~UsbTestGadget() {}
30 static bool IsTestEnabled();
31 static scoped_ptr
<UsbTestGadget
> Claim();
33 virtual bool Unclaim() = 0;
34 virtual bool Disconnect() = 0;
35 virtual bool Reconnect() = 0;
36 virtual bool SetType(Type type
) = 0;
38 virtual usb_service::UsbDevice
* GetDevice() const = 0;
39 virtual std::string
GetSerial() const = 0;
45 DISALLOW_COPY_AND_ASSIGN(UsbTestGadget
);
50 #endif // DEVICE_TEST_USB_TEST_GADGET_H_