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

Issue 409743003: Use content::RunBlockingPoolTask() in tests. (Closed)

Created:
6 years, 5 months ago by mtomasz
Modified:
6 years, 3 months ago
CC:
chromium-reviews, vandebo (ex-Chrome), sadrul, nkostylev+watch_chromium.org, tzik, markusheintz_, stevenjb+watch_chromium.org, extensions-reviews_chromium.org, jam, marja+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, nhiroki, feature-media-reviews_chromium.org, pam+watch_chromium.org, oshima+watch_chromium.org, Michael van Ouwerkerk, kalyank, tfarina, tommycli, ben+ash_chromium.org, Greg Billock, kinuko+fileapi, davemoore+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Use content::RunBlockingPoolTask() in tests. The new utility function should be used instead of manually flushing the blocking pool. This CL replaces BlockingPool::FlushForTesting and RunLoop::RunUntilIdle() wherever it was obvious. Along the way lint errors have been fixed. TEST=Refactoring only. All current tests should pass. BUG=392716 Committed: https://crrev.com/f7d99a5c7cf7d2286061cc7edc87a1f5451f880c Cr-Commit-Position: refs/heads/master@{#294835}

Patch Set 1 #

Patch Set 2 : More fixes. #

Patch Set 3 : Added missing includes. #

Patch Set 4 : Rebased. #

Patch Set 5 : Fixed. #

Patch Set 6 : Fixed. #

Patch Set 7 : Rebased again. #

Patch Set 8 : Rebased. #

Patch Set 9 : Rebased + reverted changes to content/browser/media/webrtc_identity_store_unittest.cc. #

Total comments: 3

Patch Set 10 : uint32 -> int #

Patch Set 11 : int -> size_t #

Patch Set 12 : Fixed. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -181 lines) Patch
M ash/desktop_background/desktop_background_controller_unittest.cc View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_local_storage_helper_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_test_base.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/supervised/supervised_user_test_base.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/settings/session_manager_operation_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/crx_installer_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_disabled_ui_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_garbage_collector_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -3 lines 1 comment Download
M chrome/browser/extensions/requirements_checker_browsertest.cc View 1 2 3 4 5 6 7 8 8 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/media_galleries/media_folder_finder_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/sessions/persistent_tab_restore_service_unittest.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/sessions/session_service_test_helper.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sessions/session_service_test_helper.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_registration_utility_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/drive_backend_sync_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller_browsertest.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model_unittest.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M components/nacl/browser/pnacl_host_unittest.cc View 1 2 3 4 22 chunks +73 lines, -71 lines 0 comments Download
M components/visitedlink/test/visitedlink_unittest.cc View 1 2 5 chunks +2 lines, -4 lines 0 comments Download
M content/browser/media/capture/desktop_capture_device_unittest.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
mtomasz
@darin, @sky: PTAL. Thanks.
6 years, 5 months ago (2014-07-23 06:13:31 UTC) #1
mtomasz
On 2014/07/23 06:13:31, mtomasz wrote: > @darin, @sky: PTAL. Thanks. @darin, @sky: Ping.
6 years, 3 months ago (2014-09-01 04:41:37 UTC) #2
mtomasz
On 2014/09/01 04:41:37, mtomasz wrote: > On 2014/07/23 06:13:31, mtomasz wrote: > > @darin, @sky: ...
6 years, 3 months ago (2014-09-08 00:18:35 UTC) #3
sky
https://codereview.chromium.org/409743003/diff/160001/chrome/browser/chromeos/login/supervised/supervised_user_test_base.h File chrome/browser/chromeos/login/supervised/supervised_user_test_base.h (right): https://codereview.chromium.org/409743003/diff/160001/chrome/browser/chromeos/login/supervised/supervised_user_test_base.h#newcode95 chrome/browser/chromeos/login/supervised/supervised_user_test_base.h:95: void RemoveSupervisedUser(uint32 original_user_count, Why this change? And if you're ...
6 years, 3 months ago (2014-09-08 15:51:37 UTC) #4
Lei Zhang
https://codereview.chromium.org/409743003/diff/160001/chrome/browser/chromeos/login/supervised/supervised_user_test_base.h File chrome/browser/chromeos/login/supervised/supervised_user_test_base.h (right): https://codereview.chromium.org/409743003/diff/160001/chrome/browser/chromeos/login/supervised/supervised_user_test_base.h#newcode95 chrome/browser/chromeos/login/supervised/supervised_user_test_base.h:95: void RemoveSupervisedUser(uint32 original_user_count, On 2014/09/08 15:51:37, sky wrote: > ...
6 years, 3 months ago (2014-09-08 18:21:02 UTC) #5
mtomasz
https://codereview.chromium.org/409743003/diff/160001/chrome/browser/chromeos/login/supervised/supervised_user_test_base.h File chrome/browser/chromeos/login/supervised/supervised_user_test_base.h (right): https://codereview.chromium.org/409743003/diff/160001/chrome/browser/chromeos/login/supervised/supervised_user_test_base.h#newcode95 chrome/browser/chromeos/login/supervised/supervised_user_test_base.h:95: void RemoveSupervisedUser(uint32 original_user_count, On 2014/09/08 18:21:01, Lei Zhang wrote: ...
6 years, 3 months ago (2014-09-09 01:15:32 UTC) #6
Lei Zhang
On 2014/09/09 01:15:32, mtomasz wrote: > https://codereview.chromium.org/409743003/diff/160001/chrome/browser/chromeos/login/supervised/supervised_user_test_base.h > File chrome/browser/chromeos/login/supervised/supervised_user_test_base.h > (right): > > https://codereview.chromium.org/409743003/diff/160001/chrome/browser/chromeos/login/supervised/supervised_user_test_base.h#newcode95 ...
6 years, 3 months ago (2014-09-09 01:23:01 UTC) #7
mtomasz
On 2014/09/09 01:23:01, Lei Zhang wrote: > On 2014/09/09 01:15:32, mtomasz wrote: > > > ...
6 years, 3 months ago (2014-09-10 04:35:24 UTC) #8
sky
LGTM
6 years, 3 months ago (2014-09-10 14:44:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/409743003/220001
6 years, 3 months ago (2014-09-11 05:12:54 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/10224)
6 years, 3 months ago (2014-09-11 05:22:55 UTC) #13
mtomasz
@jvoung: PTAL at components/nacl/browser/pnacl_host_unittest.cc. Thanks.
6 years, 3 months ago (2014-09-11 05:28:05 UTC) #15
jvoung (off chromium)
lgtm
6 years, 3 months ago (2014-09-11 15:56:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/409743003/220001
6 years, 3 months ago (2014-09-11 23:22:18 UTC) #18
commit-bot: I haz the power
Failed to commit the patch.
6 years, 3 months ago (2014-09-12 00:35:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/409743003/220001
6 years, 3 months ago (2014-09-15 16:22:46 UTC) #22
commit-bot: I haz the power
Committed patchset #12 (id:220001) as 019568436b226539dc8c01b2b0c64337b70aa710
6 years, 3 months ago (2014-09-15 16:27:52 UTC) #23
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/f7d99a5c7cf7d2286061cc7edc87a1f5451f880c Cr-Commit-Position: refs/heads/master@{#294835}
6 years, 3 months ago (2014-09-15 16:31:21 UTC) #24
Lei Zhang
6 years, 3 months ago (2014-09-19 21:10:13 UTC) #25
Message was sent while issue was closed.
https://codereview.chromium.org/409743003/diff/220001/chrome/browser/extensio...
File chrome/browser/extensions/extension_garbage_collector_chromeos_unittest.cc
(right):

https://codereview.chromium.org/409743003/diff/220001/chrome/browser/extensio...
chrome/browser/extensions/extension_garbage_collector_chromeos_unittest.cc:10:
#include "base/file_util.h"
Please be aware that this is going away. Use base/files/file_util.h in the
future. I had removed all references, but they keep sneaking back in.

Powered by Google App Engine
This is Rietveld 408576698