Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8915)

Unified Diff: device/usb/mock_usb_device.h

Issue 1695643002: Destroy DeviceImpl when the underlying UsbDevice is disconnected. (Closed) Base URL: reillyg-linux.mtv.corp.google.com:/src/chromium/src@mojo_device_autoclose
Patch Set: Revert change to web_usb_device_impl.cc. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/usb/mock_usb_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/mock_usb_device.h
diff --git a/device/usb/mock_usb_device.h b/device/usb/mock_usb_device.h
index 91bb0bb7be9f27cce34f2483ab9d0b8897b3d95d..569a471f8102e758f0fbe15bb47ab2547899cc25 100644
--- a/device/usb/mock_usb_device.h
+++ b/device/usb/mock_usb_device.h
@@ -43,6 +43,9 @@ class MockUsbDevice : public UsbDevice {
MOCK_METHOD1(Open, void(const OpenCallback&));
MOCK_METHOD0(GetActiveConfiguration, const device::UsbConfigDescriptor*());
+ // Public wrapper around UsbDevice::NotifyDeviceRemoved().
+ void NotifyDeviceRemoved();
+
private:
~MockUsbDevice() override;
};
« no previous file with comments | « no previous file | device/usb/mock_usb_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698