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

Issue 266363006: Adds API tests for listRemovableStorageDevices (Closed)

Created:
6 years, 7 months ago by Drew Haven
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Adds API tests for listRemovableStorageDevices BUG=370658 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270030

Patch Set 1 #

Patch Set 2 : formatting #

Patch Set 3 : Fixes include ordering. #

Patch Set 4 : Cleans up a few minor issues. #

Total comments: 4

Patch Set 5 : Changes the test device list initialization to use a LazyInstance. Adds a callback registration to… #

Total comments: 2

Patch Set 6 : Changes tests to use framework and not explicit succeed/fail. #

Patch Set 7 : Updates the Chrome OS unittest to account for RemovableStorageProvider now being asynchronous. #

Patch Set 8 : Fixes mac compile. #

Patch Set 9 : Resync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -41 lines) Patch
A chrome/browser/extensions/api/image_writer_private/image_writer_private_apitest.cc View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/removable_storage_provider.h View 1 2 3 2 chunks +16 lines, -3 lines 0 comments Download
A chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos.cc View 1 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/removable_storage_provider_chromeos_unittest.cc View 1 2 3 4 5 6 4 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/removable_storage_provider_linux.cc View 2 chunks +1 line, -14 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/removable_storage_provider_mac.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/image_writer_private/removable_storage_provider_win.cc View 1 2 3 3 chunks +5 lines, -14 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
A chrome/test/data/extensions/api_test/image_writer_private/list_devices/manifest.json View 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Drew Haven
Antony, This is my first attempt at an API test. Could you look it over ...
6 years, 7 months ago (2014-05-06 23:15:52 UTC) #1
asargent_no_longer_on_chrome
Good start! Just a few things to fix. https://codereview.chromium.org/266363006/diff/50001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc File chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc (right): https://codereview.chromium.org/266363006/diff/50001/chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc#newcode12 chrome/browser/extensions/api/image_writer_private/removable_storage_provider.cc:12: static ...
6 years, 7 months ago (2014-05-07 21:31:40 UTC) #2
Drew Haven
Thanks for the input, Antony, particularly the long comment about using chrome.test.callback. It was very ...
6 years, 7 months ago (2014-05-08 00:14:33 UTC) #3
asargent_no_longer_on_chrome
lgtm w/ one last nit https://codereview.chromium.org/266363006/diff/70001/chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js File chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js (right): https://codereview.chromium.org/266363006/diff/70001/chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js#newcode38 chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js:38: chrome.test.succeed(); nit: (Sorry if ...
6 years, 7 months ago (2014-05-08 16:18:48 UTC) #4
Drew Haven
https://codereview.chromium.org/266363006/diff/70001/chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js File chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js (right): https://codereview.chromium.org/266363006/diff/70001/chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js#newcode38 chrome/test/data/extensions/api_test/image_writer_private/list_devices/test.js:38: chrome.test.succeed(); On 2014/05/08 16:18:48, Antony Sargent wrote: > nit: ...
6 years, 7 months ago (2014-05-08 21:21:31 UTC) #5
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 7 months ago (2014-05-08 22:09:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/266363006/90001
6 years, 7 months ago (2014-05-08 22:16:21 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 02:32:51 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-09 03:45:38 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/24840)
6 years, 7 months ago (2014-05-09 03:45:42 UTC) #10
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 7 months ago (2014-05-09 23:48:49 UTC) #11
Drew Haven
The CQ bit was unchecked by haven@chromium.org
6 years, 7 months ago (2014-05-09 23:51:10 UTC) #12
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 7 months ago (2014-05-10 00:20:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/266363006/110001
6 years, 7 months ago (2014-05-10 00:23:19 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-10 03:32:16 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-10 05:04:13 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/152774)
6 years, 7 months ago (2014-05-10 05:04:14 UTC) #17
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 7 months ago (2014-05-12 19:05:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/266363006/110001
6 years, 7 months ago (2014-05-12 19:07:44 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-12 22:40:09 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-12 23:14:31 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/153191)
6 years, 7 months ago (2014-05-12 23:14:32 UTC) #22
Drew Haven
The CQ bit was checked by haven@chromium.org
6 years, 7 months ago (2014-05-13 01:47:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haven@chromium.org/266363006/150001
6 years, 7 months ago (2014-05-13 01:48:01 UTC) #24
commit-bot: I haz the power
6 years, 7 months ago (2014-05-13 05:35:37 UTC) #25
Message was sent while issue was closed.
Change committed as 270030

Powered by Google App Engine
This is Rietveld 408576698