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

Issue 1947683005: Add test renderer host support to ExtensionServiceTestBase. (Closed)

Created:
4 years, 7 months ago by Reilly Grant (use Gerrit)
Modified:
4 years, 7 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, gcasto+watchlist_chromium.org, michaelpg+watch-options_chromium.org, mkwst+watchlist-passwords_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add test renderer host support to ExtensionServiceTestBase. ExtensionService tests may (even inadvertently) cause the creation of RenderProcessHosts. For example, ExtensionService::AddExtension causes the chrome.runtime.oninstalled event to be fired inside extensions which requires a WebContents to be created. ExtensionServiceTestBase should include a RenderViewHostTestEnabler so that real render hosts are not created which may leak out into other tests and cause difficult to diagnose use-after-free errors. BUG=608064 Committed: https://crrev.com/123aab602d256ce1aa4337972be162164953da6e Cr-Commit-Position: refs/heads/master@{#392163}

Patch Set 1 : #

Patch Set 2 : Re-enable tests. #

Patch Set 3 : Fix tests that end up creating two RenderViewHostFactories. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -46 lines) Patch
M chrome/browser/extensions/api/developer_private/developer_private_api_unittest.cc View 1 2 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api_unittest.cc View 1 2 6 chunks +15 lines, -13 lines 0 comments Download
M chrome/browser/extensions/bookmark_app_helper_unittest.cc View 1 2 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model_unittest.cc View 1 2 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt_unittest.cc View 1 2 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_service_test_base.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M tools/valgrind/gtest_exclude/unit_tests.gtest-drmemory_win32.txt View 1 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Reilly Grant (use Gerrit)
Please take a look.
4 years, 7 months ago (2016-05-04 23:43:32 UTC) #3
Reilly Grant (use Gerrit)
Re-enable tests.
4 years, 7 months ago (2016-05-04 23:44:47 UTC) #4
asargent_no_longer_on_chrome
nice, lgtm
4 years, 7 months ago (2016-05-05 23:15:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1947683005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1947683005/40001
4 years, 7 months ago (2016-05-05 23:22:39 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/165929) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 7 months ago (2016-05-05 23:37:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1947683005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1947683005/60001
4 years, 7 months ago (2016-05-06 21:26:17 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 7 months ago (2016-05-06 21:32:47 UTC) #13
commit-bot: I haz the power
4 years, 7 months ago (2016-05-06 21:34:28 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/123aab602d256ce1aa4337972be162164953da6e
Cr-Commit-Position: refs/heads/master@{#392163}

Powered by Google App Engine
This is Rietveld 408576698