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

Issue 2256363003: Clean up thread handling in Blimp browser tests. (Closed)

Created:
4 years, 4 months ago by Kevin M
Modified:
4 years, 4 months ago
Reviewers:
Wez, CJ
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, viettrungluu+watch_chromium.org, gcasto+watch-blimp_chromium.org, yzshen+watch_chromium.org, abarth-chromium, nyquist+watch-blimp_chromium.org, Aaron Boodman, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, darin (slow to review), dtrainor+watch-blimp_chromium.org, ben+mojo_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org, qsr+mojo_chromium.org, Brian Goldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up thread handling in Blimp browser tests. * Make BlobChannelService IO-thread clean and add ThreadChecker to enforce it. * Add thread-hopping to cache state pulling logic. * Replace RunLoops with test utility functions. * Add helper function "RunUntilCompletion()" which relieves test code of the need to explicitly schedule RunLoops on threads. * Misc. cleanup (e.g. moving some fields from unique_ptrs to regular fields, renaming methods, etc.) R=wez@chromium.org,lethalantidote@chromium.org BUG= Committed: https://crrev.com/4e3446b74d446d5e2132fb3640feaabc933bdca0 Cr-Commit-Position: refs/heads/master@{#413523}

Patch Set 1 #

Total comments: 30

Patch Set 2 : wez feedback #

Total comments: 2

Patch Set 3 : wez feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -98 lines) Patch
M blimp/engine/app/blimp_browser_main_parts.cc View 1 chunk +1 line, -1 line 0 comments Download
M blimp/engine/browser_tests/blimp_browser_test.h View 1 2 3 chunks +16 lines, -6 lines 0 comments Download
M blimp/engine/browser_tests/blimp_browser_test.cc View 1 2 6 chunks +32 lines, -34 lines 0 comments Download
M blimp/engine/browser_tests/engine_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M blimp/engine/mojo/blob_channel_service.h View 1 2 3 chunks +29 lines, -7 lines 0 comments Download
M blimp/engine/mojo/blob_channel_service.cc View 1 2 3 chunks +54 lines, -7 lines 0 comments Download
M blimp/engine/renderer/blob_channel_sender_proxy_unittest.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.h View 1 4 chunks +6 lines, -5 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.cc View 1 8 chunks +39 lines, -31 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_sender_impl.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M blimp/net/blob_channel/blob_channel_sender_impl.cc View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 18 (9 generated)
Kevin M
4 years, 4 months ago (2016-08-19 01:28:39 UTC) #2
Wez
https://codereview.chromium.org/2256363003/diff/1/blimp/engine/browser_tests/blimp_browser_test.cc File blimp/engine/browser_tests/blimp_browser_test.cc (right): https://codereview.chromium.org/2256363003/diff/1/blimp/engine/browser_tests/blimp_browser_test.cc#newcode101 blimp/engine/browser_tests/blimp_browser_test.cc:101: content::RunAllPendingInMessageLoop(content::BrowserThread::UI); There is an assumption here that GetEnginePortForTesting() effectively ...
4 years, 4 months ago (2016-08-19 19:15:50 UTC) #3
Kevin M
https://codereview.chromium.org/2256363003/diff/1/blimp/engine/browser_tests/blimp_browser_test.cc File blimp/engine/browser_tests/blimp_browser_test.cc (right): https://codereview.chromium.org/2256363003/diff/1/blimp/engine/browser_tests/blimp_browser_test.cc#newcode101 blimp/engine/browser_tests/blimp_browser_test.cc:101: content::RunAllPendingInMessageLoop(content::BrowserThread::UI); On 2016/08/19 19:15:50, Wez wrote: > There is ...
4 years, 4 months ago (2016-08-19 21:43:34 UTC) #4
CJ
https://codereview.chromium.org/2256363003/diff/1/blimp/engine/mojo/blob_channel_service.cc File blimp/engine/mojo/blob_channel_service.cc (right): https://codereview.chromium.org/2256363003/diff/1/blimp/engine/mojo/blob_channel_service.cc#newcode63 blimp/engine/mojo/blob_channel_service.cc:63: for (const auto& next_entry : ids) { I'd suggest ...
4 years, 4 months ago (2016-08-19 23:22:50 UTC) #9
Wez
LGTM! https://codereview.chromium.org/2256363003/diff/1/blimp/engine/mojo/blob_channel_service.cc File blimp/engine/mojo/blob_channel_service.cc (right): https://codereview.chromium.org/2256363003/diff/1/blimp/engine/mojo/blob_channel_service.cc#newcode42 blimp/engine/mojo/blob_channel_service.cc:42: base::Unretained(this)), On 2016/08/19 21:43:33, Kevin M wrote: > ...
4 years, 4 months ago (2016-08-20 00:40:24 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2256363003/40001
4 years, 4 months ago (2016-08-22 18:02:29 UTC) #13
Kevin M
https://codereview.chromium.org/2256363003/diff/1/blimp/engine/mojo/blob_channel_service.h File blimp/engine/mojo/blob_channel_service.h (right): https://codereview.chromium.org/2256363003/diff/1/blimp/engine/mojo/blob_channel_service.h#newcode30 blimp/engine/mojo/blob_channel_service.h:30: scoped_refptr<base::SingleThreadTaskRunner> task_runner); On 2016/08/20 00:40:24, Wez wrote: > On ...
4 years, 4 months ago (2016-08-22 19:46:56 UTC) #14
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 4 months ago (2016-08-22 20:34:28 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-22 20:34:55 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4e3446b74d446d5e2132fb3640feaabc933bdca0
Cr-Commit-Position: refs/heads/master@{#413523}

Powered by Google App Engine
This is Rietveld 408576698