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

Issue 10824298: Adding tests for USB extension API (Closed)

Created:
8 years, 4 months ago by Garret Kelly
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Adding tests for USB extension API Includes test coverage for the recently-fixed zero-length transfer bug. BUG=140390 TEST=self Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151777

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adding 'success' case to transfer failure test. #

Patch Set 3 : Review changes. #

Patch Set 4 : MSVC fix for warning about the old version of their compiler being broken. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -44 lines) Patch
M chrome/browser/extensions/api/usb/usb_api.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/usb/usb_api.cc View 1 2 4 chunks +23 lines, -5 lines 0 comments Download
A chrome/browser/extensions/api/usb/usb_apitest.cc View 1 2 3 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/usb/usb_device_resource.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/usb/usb_device_resource.cc View 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/usb/usb_device.h View 3 chunks +42 lines, -38 lines 0 comments Download
M chrome/browser/usb/usb_device.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb/device_handling/manifest.json View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb/device_handling/test.js View 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb/transfer_event/manifest.json View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb/transfer_event/test.js View 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb/transfer_failure/manifest.json View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb/transfer_failure/test.js View 1 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb/zero_length_transfer/manifest.json View 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/usb/zero_length_transfer/test.js View 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Garret Kelly
bryeung: For chrome/browser/usb changes. asargent: For everything else.
8 years, 4 months ago (2012-08-14 20:57:31 UTC) #1
Nico
chrome_tests change lgtm stamp
8 years, 4 months ago (2012-08-14 21:00:22 UTC) #2
bryeung
chrome/browser/usb lgtm
8 years, 4 months ago (2012-08-14 21:01:28 UTC) #3
asargent_no_longer_on_chrome
LGTM http://codereview.chromium.org/10824298/diff/1/chrome/browser/extensions/api/usb/usb_api.cc File chrome/browser/extensions/api/usb/usb_api.cc (right): http://codereview.chromium.org/10824298/diff/1/chrome/browser/extensions/api/usb/usb_api.cc#newcode66 chrome/browser/extensions/api/usb/usb_api.cc:66: DCHECK(service) << "No UsbService associated with profile."; nit: ...
8 years, 4 months ago (2012-08-14 22:31:06 UTC) #4
Garret Kelly
Thanks for the review! > nit: Since we'll crash on the next line anyway if ...
8 years, 4 months ago (2012-08-14 23:19:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10824298/9002
8 years, 4 months ago (2012-08-14 23:20:24 UTC) #6
commit-bot: I haz the power
Try job failure for 10824298-9002 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 4 months ago (2012-08-15 00:59:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10824298/1020
8 years, 4 months ago (2012-08-15 15:46:48 UTC) #8
commit-bot: I haz the power
Try job failure for 10824298-1020 (retry) on linux_chromeos for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-15 20:10:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10824298/1020
8 years, 4 months ago (2012-08-15 20:30:02 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-08-15 23:04:20 UTC) #11
Change committed as 151777

Powered by Google App Engine
This is Rietveld 408576698