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

Issue 800963005: Add browser tests for USB device add/remove events. (Closed)

Created:
5 years, 11 months ago by Reilly Grant (use Gerrit)
Modified:
5 years, 11 months ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Adjusted JavaScript style. #

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

Messages

Total messages: 9 (3 generated)
Reilly Grant (use Gerrit)
Yoyo, please take a look at these tests (and associated lifecycle changes that enable them ...
5 years, 11 months ago (2015-01-13 02:28:56 UTC) #3
Yoyo Zhou
LGTM https://codereview.chromium.org/800963005/diff/20001/device/usb/usb_service.cc File device/usb/usb_service.cc (right): https://codereview.chromium.org/800963005/diff/20001/device/usb/usb_service.cc#newcode51 device/usb/usb_service.cc:51: g_service = UsbServiceImpl::Create(ui_task_runner); It is odd for UsbService ...
5 years, 11 months ago (2015-01-21 06:57:44 UTC) #4
Reilly Grant (use Gerrit)
https://codereview.chromium.org/800963005/diff/20001/device/usb/usb_service.cc File device/usb/usb_service.cc (right): https://codereview.chromium.org/800963005/diff/20001/device/usb/usb_service.cc#newcode51 device/usb/usb_service.cc:51: g_service = UsbServiceImpl::Create(ui_task_runner); On 2015/01/21 06:57:43, Yoyo Zhou wrote: ...
5 years, 11 months ago (2015-01-22 00:45:01 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/800963005/40001
5 years, 11 months ago (2015-01-22 01:32:46 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 11 months ago (2015-01-22 02:40:39 UTC) #8
commit-bot: I haz the power
5 years, 11 months ago (2015-01-22 02:41:37 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/45919813ba21243f14a326b593a9fae52ff4a2f8
Cr-Commit-Position: refs/heads/master@{#312538}

Powered by Google App Engine
This is Rietveld 408576698