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

Issue 2175933002: More aggressive IO asserts in content_browsertests. (Closed)

Created:
4 years, 5 months ago by Łukasz Anforowicz
Modified:
4 years, 4 months ago
Reviewers:
jam
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

More aggressive IO asserts in content_browsertests. Since browser test's main thread corresponds roughly to the product's UI thread, it should behave in the same wrt base::ThreadRestrictions - after this CL the body of browser tests derived from content::ContentBrowserTest is not allowed to do file IO. Motivation: The more aggressive IO asserts would have caught https://crbug.com/626972 earlier. Hopefully the more aggressive asserting will also prevent future regressions in this area. BUG=631145 Committed: https://crrev.com/7947ccd5754451960f0bf18f3b5401dc5ffeedb8 Cr-Commit-Position: refs/heads/master@{#408496}

Patch Set 1 #

Patch Set 2 : Fixing test code + rebasing. #

Patch Set 3 : Rebasing... #

Patch Set 4 : PPAPI tests fix. #

Patch Set 5 : More fixes (in PPAPI tests + WebRTC tests). #

Total comments: 2

Patch Set 6 : Use 1 less instance of ScopedAllowIO in DumpAccessibilityTestBase::RunTestForPlatform. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -149 lines) Patch
M PRESUBMIT.py View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_browsertest_base.cc View 1 2 3 4 5 3 chunks +24 lines, -16 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_events_browsertest.cc View 1 2 3 4 3 chunks +8 lines, -5 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_tree_browsertest.cc View 1 3 chunks +20 lines, -18 lines 0 comments Download
M content/browser/cross_site_transfer_browsertest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_browsertest.cc View 1 28 chunks +76 lines, -49 lines 0 comments Download
M content/browser/download/mhtml_generation_browsertest.cc View 1 2 12 chunks +53 lines, -21 lines 0 comments Download
M content/browser/indexed_db/indexed_db_browsertest.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M content/browser/media/webrtc/webrtc_audio_debug_recordings_browsertest.cc View 1 2 3 4 3 chunks +16 lines, -6 lines 0 comments Download
M content/browser/media/webrtc/webrtc_getusermedia_browsertest.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_browsertest.cc View 1 1 chunk +1 line, -5 lines 0 comments Download
M content/browser/tracing/tracing_controller_browsertest.cc View 1 2 3 chunks +12 lines, -5 lines 0 comments Download
M content/browser/webui/web_ui_mojo_browsertest.cc View 1 4 chunks +6 lines, -0 lines 0 comments Download
M content/public/test/content_browser_test.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M content/public/test/content_browser_test_utils.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/test/content_browser_test_utils.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/dom_serializer_browsertest.cc View 1 3 chunks +16 lines, -4 lines 0 comments Download
M content/test/content_browser_test_test.cc View 1 3 chunks +3 lines, -0 lines 0 comments Download
M content/test/ppapi/ppapi_test.cc View 1 2 3 2 chunks +12 lines, -6 lines 0 comments Download
M content/test/webui_resource_browsertest.cc View 1 3 chunks +7 lines, -7 lines 0 comments Download
M net/cert/test_root_certs.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.cc View 1 4 chunks +11 lines, -0 lines 0 comments Download
M net/test/spawned_test_server/local_test_server.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M net/test/test_data_directory.cc View 1 2 chunks +6 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 15 (9 generated)
Łukasz Anforowicz
jam@, can you take a look please? The main change in this CL is to ...
4 years, 4 months ago (2016-07-26 22:28:59 UTC) #3
jam
lgtm good catch, i agree slightly more work in browser tests is worth the effort ...
4 years, 4 months ago (2016-07-26 23:52:16 UTC) #4
Łukasz Anforowicz
Thanks for the review. https://codereview.chromium.org/2175933002/diff/80001/content/browser/accessibility/dump_accessibility_browsertest_base.cc File content/browser/accessibility/dump_accessibility_browsertest_base.cc (right): https://codereview.chromium.org/2175933002/diff/80001/content/browser/accessibility/dump_accessibility_browsertest_base.cc#newcode211 content/browser/accessibility/dump_accessibility_browsertest_base.cc:211: } On 2016/07/26 23:52:16, jam ...
4 years, 4 months ago (2016-07-27 16:18:14 UTC) #5
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/2175933002/100001
4 years, 4 months ago (2016-07-28 21:06:48 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-07-28 21:56:39 UTC) #13
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 21:58:52 UTC) #15
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7947ccd5754451960f0bf18f3b5401dc5ffeedb8
Cr-Commit-Position: refs/heads/master@{#408496}

Powered by Google App Engine
This is Rietveld 408576698