summaryrefslogtreecommitdiffstats
path: root/device/test/usb_test_gadget.h
diff options
context:
space:
mode:
Diffstat (limited to 'device/test/usb_test_gadget.h')
-rw-r--r--device/test/usb_test_gadget.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/device/test/usb_test_gadget.h b/device/test/usb_test_gadget.h
index 99110a1..b1a8642 100644
--- a/device/test/usb_test_gadget.h
+++ b/device/test/usb_test_gadget.h
@@ -8,8 +8,13 @@
#include <string>
#include "base/macros.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+namespace base {
+class SingleThreadTaskRunner;
+}
+
namespace device {
class UsbDevice;
@@ -27,7 +32,8 @@ class UsbTestGadget {
virtual ~UsbTestGadget() {}
static bool IsTestEnabled();
- static scoped_ptr<UsbTestGadget> Claim();
+ static scoped_ptr<UsbTestGadget> Claim(
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
virtual bool Unclaim() = 0;
virtual bool Disconnect() = 0;
@@ -35,7 +41,6 @@ class UsbTestGadget {
virtual bool SetType(Type type) = 0;
virtual UsbDevice* GetDevice() const = 0;
- virtual const std::string& GetSerialNumber() const = 0;
protected:
UsbTestGadget() {}