Index: components/usb_service/usb_interface.h |
diff --git a/components/usb_service/usb_interface.h b/components/usb_service/usb_interface.h |
index 31e58a213b748b7ceb6b0977796a2ec07ac2b238..1d9c8ee1fde004e16590d981d3f1a6c9a82dc21f 100644 |
--- a/components/usb_service/usb_interface.h |
+++ b/components/usb_service/usb_interface.h |
@@ -126,15 +126,20 @@ class USB_SERVICE_EXPORT UsbInterfaceDescriptor |
class USB_SERVICE_EXPORT UsbConfigDescriptor |
: public base::RefCounted<UsbConfigDescriptor> { |
public: |
- size_t GetNumInterfaces() const; |
- scoped_refptr<const UsbInterfaceDescriptor> GetInterface(size_t index) const; |
+ virtual size_t GetNumInterfaces() const; |
+ virtual scoped_refptr<const UsbInterfaceDescriptor> GetInterface( |
+ size_t index) const; |
+ |
+ protected: |
+ // Constructor called in test only |
+ UsbConfigDescriptor(); |
+ virtual ~UsbConfigDescriptor(); |
private: |
friend class base::RefCounted<UsbConfigDescriptor>; |
friend class UsbDevice; |
explicit UsbConfigDescriptor(PlatformUsbConfigDescriptor config); |
- ~UsbConfigDescriptor(); |
PlatformUsbConfigDescriptor config_; |