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

Issue 2749653002: allow unit_tests to re-create service manager context. (Closed)

Created:
3 years, 9 months ago by khmel
Modified:
3 years, 9 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

allow unit_tests to re-create service manager context. ServiceManagerContext is designed to be created only once. However in unit tests in batch mode TestServiceManagerContext might be recreated many times for the same process. This calls several asserts. This CL resets static files association after destroying TestServiceManagerContext TEST=unit_tests passes, number of retry tests changed 81->4 time from 256 seconds to 88. BUG=693559 Review-Url: https://codereview.chromium.org/2749653002 Cr-Commit-Position: refs/heads/master@{#456517} Committed: https://chromium.googlesource.com/chromium/src/+/1a2563dcc211e71fa8c32f52c9bc4d64d71a42cc

Patch Set 1 #

Total comments: 2

Patch Set 2 : comment updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -2 lines) Patch
M content/browser/child_process_launcher.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher_helper.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher_helper_android.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher_helper_linux.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher_helper_mac.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher_helper_posix.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M content/browser/child_process_launcher_helper_posix.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/child_process_launcher_helper_win.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/test_service_manager_context.cc View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
khmel
Hi, PTAL Thanks!
3 years, 9 months ago (2017-03-13 20:57:58 UTC) #4
dgozman
rs lgtm for content/, deferring to rockot@ for the real review. https://codereview.chromium.org/2749653002/diff/1/content/browser/child_process_launcher_helper_posix.h File content/browser/child_process_launcher_helper_posix.h (right): ...
3 years, 9 months ago (2017-03-13 21:29:38 UTC) #6
Ken Rockot(use gerrit already)
LGTM
3 years, 9 months ago (2017-03-13 21:46:56 UTC) #7
khmel
Thank you for quick review! https://codereview.chromium.org/2749653002/diff/1/content/browser/child_process_launcher_helper_posix.h File content/browser/child_process_launcher_helper_posix.h (right): https://codereview.chromium.org/2749653002/diff/1/content/browser/child_process_launcher_helper_posix.h#newcode46 content/browser/child_process_launcher_helper_posix.h:46: // Called by the ...
3 years, 9 months ago (2017-03-13 21:53:04 UTC) #8
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/2749653002/20001
3 years, 9 months ago (2017-03-13 21:53:56 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-13 22:52:11 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/1a2563dcc211e71fa8c32f52c9bc...

Powered by Google App Engine
This is Rietveld 408576698