Use interface associations to check function permissions.
This patch expands on r383543 to use correctly use the interface
associations parsed out of device descriptors to allow WebUSB
access controls to be specified at a function, rather than interface,
level.
BUG=492204
[email protected]
Review URL: https://codereview.chromium.org/1847183002
Cr-Commit-Position: refs/heads/master@{#384785}
diff --git a/device/BUILD.gn b/device/BUILD.gn
index a8870d3..17ab428 100644
--- a/device/BUILD.gn
+++ b/device/BUILD.gn
@@ -111,8 +111,8 @@
"test/usb_test_gadget_impl.cc",
"usb/mojo/device_impl_unittest.cc",
"usb/mojo/device_manager_impl_unittest.cc",
- "usb/mojo/fake_permission_provider.cc",
- "usb/mojo/fake_permission_provider.h",
+ "usb/mojo/mock_permission_provider.cc",
+ "usb/mojo/mock_permission_provider.h",
"usb/usb_descriptors_unittest.cc",
"usb/usb_device_filter_unittest.cc",
"usb/usb_device_handle_unittest.cc",