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

Issue 1326003006: Add webusb notification UI unit tests (Closed)

Created:
5 years, 3 months ago by juncai
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add webusb notification UI unit tests This patch added webusb notification UI unit tests code. BUG=492204 Committed: https://crrev.com/a764fd3e6431e3932b20d1c364a8d92a55120167 Cr-Commit-Position: refs/heads/master@{#347866}

Patch Set 1 : added webusb notification UI unit tests code #

Patch Set 2 : added gmock to webusb BUILD.gn deps #

Patch Set 3 : added usb mocks to webusb BUILD.gn deps #

Total comments: 20

Patch Set 4 : updated webusb notification UI unit tests based on reviewers' comments #

Patch Set 5 : simplified test code for chrome_webusb_browser_client_unittest.cc #

Total comments: 2

Patch Set 6 : hardcoded expected string for testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+735 lines, -1 line) Patch
M chrome/browser/chrome_webusb_browser_client.h View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/chrome_webusb_browser_client_unittest.cc View 1 2 3 4 5 1 chunk +232 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M components/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 4 chunks +8 lines, -0 lines 0 comments Download
M components/webusb/BUILD.gn View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M components/webusb/webusb_browser_client.h View 1 chunk +0 lines, -1 line 0 comments Download
A components/webusb/webusb_detector_unittest.cc View 1 2 3 1 chunk +457 lines, -0 lines 0 comments Download
M device/usb/mock_usb_device.h View 1 chunk +6 lines, -0 lines 0 comments Download
M device/usb/mock_usb_device.cc View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
juncai
thestig@chromium.org: Please review changes in chrome/chrome_tests_unit.gypi caitkp@chromium.org: Please review changes in components/BUILD.gn components/components_tests.gyp reillyg@chromium.org: Please ...
5 years, 3 months ago (2015-09-04 21:02:20 UTC) #2
Lei Zhang
chrome/ build files lgtm https://codereview.chromium.org/1326003006/diff/40001/chrome/browser/chrome_webusb_browser_client_unittest.cc File chrome/browser/chrome_webusb_browser_client_unittest.cc (right): https://codereview.chromium.org/1326003006/diff/40001/chrome/browser/chrome_webusb_browser_client_unittest.cc#newcode35 chrome/browser/chrome_webusb_browser_client_unittest.cc:35: void set_usb_service(device::UsbService* service) { usb_service_ ...
5 years, 3 months ago (2015-09-04 21:10:18 UTC) #3
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1326003006/diff/40001/chrome/browser/chrome_webusb_browser_client_unittest.cc File chrome/browser/chrome_webusb_browser_client_unittest.cc (right): https://codereview.chromium.org/1326003006/diff/40001/chrome/browser/chrome_webusb_browser_client_unittest.cc#newcode57 chrome/browser/chrome_webusb_browser_client_unittest.cc:57: usb_service_.reset(new device::MockUsbService()); The pattern in other tests that need ...
5 years, 3 months ago (2015-09-04 21:23:34 UTC) #4
juncai
reillyg@chromium.org: Please review changes. https://codereview.chromium.org/1326003006/diff/40001/chrome/browser/chrome_webusb_browser_client_unittest.cc File chrome/browser/chrome_webusb_browser_client_unittest.cc (right): https://codereview.chromium.org/1326003006/diff/40001/chrome/browser/chrome_webusb_browser_client_unittest.cc#newcode35 chrome/browser/chrome_webusb_browser_client_unittest.cc:35: void set_usb_service(device::UsbService* service) { usb_service_ ...
5 years, 3 months ago (2015-09-08 21:14:01 UTC) #5
Reilly Grant (use Gerrit)
lgtm with one comment. https://codereview.chromium.org/1326003006/diff/80001/chrome/browser/chrome_webusb_browser_client_unittest.cc File chrome/browser/chrome_webusb_browser_client_unittest.cc (right): https://codereview.chromium.org/1326003006/diff/80001/chrome/browser/chrome_webusb_browser_client_unittest.cc#newcode90 chrome/browser/chrome_webusb_browser_client_unittest.cc:90: l10n_util::GetStringUTF16(IDS_WEBUSB_DEVICE_DETECTED_NOTIFICATION); Please hard-code the expected ...
5 years, 3 months ago (2015-09-08 21:45:37 UTC) #6
juncai
https://codereview.chromium.org/1326003006/diff/80001/chrome/browser/chrome_webusb_browser_client_unittest.cc File chrome/browser/chrome_webusb_browser_client_unittest.cc (right): https://codereview.chromium.org/1326003006/diff/80001/chrome/browser/chrome_webusb_browser_client_unittest.cc#newcode90 chrome/browser/chrome_webusb_browser_client_unittest.cc:90: l10n_util::GetStringUTF16(IDS_WEBUSB_DEVICE_DETECTED_NOTIFICATION); On 2015/09/08 21:45:37, Reilly Grant wrote: > Please ...
5 years, 3 months ago (2015-09-08 23:13:29 UTC) #7
Cait (Slow)
components/BUILD.gn, components/components_tests.gyp LGTM
5 years, 3 months ago (2015-09-09 02:19:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1326003006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1326003006/100001
5 years, 3 months ago (2015-09-09 02:30:29 UTC) #11
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-09 09:04:49 UTC) #12
commit-bot: I haz the power
5 years, 3 months ago (2015-09-09 09:05:43 UTC) #13
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a764fd3e6431e3932b20d1c364a8d92a55120167
Cr-Commit-Position: refs/heads/master@{#347866}

Powered by Google App Engine
This is Rietveld 408576698