|
Add browser tests for USB device add/remove events.
These tests are essentially copies of the HID device add and remove
event tests. In order to reconcile issues with the MockUsbService
lifetime it is now tracked by a MessageLoop::DestructionObserver at the
generic UsbService level. This is similar to the pattern used by the
HidService until it was moved to the UI thread and could use a
LazyInstance.
BUG= 411715
Committed: https://crrev.com/45919813ba21243f14a326b593a9fae52ff4a2f8
Cr-Commit-Position: refs/heads/master@{#312538}
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+302 lines, -201 lines) |
Patch |
 |
M |
chrome/browser/extensions/api/device_permissions_manager_unittest.cc
|
View
|
|
8 chunks |
+21 lines, -28 lines |
0 comments
|
Download
|
 |
M |
device/usb/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_service.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
A |
device/usb/usb_service.cc
|
View
|
|
1 chunk |
+90 lines, -0 lines |
0 comments
|
Download
|
 |
A |
device/usb/usb_service_impl.h
|
View
|
1
|
1 chunk |
+82 lines, -0 lines |
0 comments
|
Download
|
 |
M |
device/usb/usb_service_impl.cc
|
View
|
1
|
7 chunks |
+19 lines, -146 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/hid/hid_apitest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/api/usb/usb_apitest.cc
|
View
|
|
5 chunks |
+68 lines, -10 lines |
0 comments
|
Download
|
 |
A + |
extensions/test/data/api_test/usb/add_event/background.js
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A + |
extensions/test/data/api_test/usb/add_event/manifest.json
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
extensions/test/data/api_test/usb/remove_event/background.js
|
View
|
1
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
A + |
extensions/test/data/api_test/usb/remove_event/manifest.json
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
Total messages: 9 (3 generated)
|