Index: components/usb_service/usb_interface.cc |
diff --git a/components/usb_service/usb_interface.cc b/components/usb_service/usb_interface.cc |
index 67f1a9d5aa06cedd4e54fe6d91884813d82b6f33..3194440c89b1277d9b5d10f3b30b622fba8d74cc 100644 |
--- a/components/usb_service/usb_interface.cc |
+++ b/components/usb_service/usb_interface.cc |
@@ -149,6 +149,12 @@ UsbConfigDescriptor::UsbConfigDescriptor(PlatformUsbConfigDescriptor config) |
: config_(config) { |
} |
+// TODO(zvorygin): Used for tests only. Should be removed when |
+// all interfaces are extracted properly. |
+UsbConfigDescriptor::UsbConfigDescriptor() { |
+ config_ = NULL; |
+} |
+ |
UsbConfigDescriptor::~UsbConfigDescriptor() { |
if (config_ != NULL) { |
libusb_free_config_descriptor(config_); |