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

Issue 2229943002: Remove dependency on test_runner from some components unittests. (Closed)

Created:
4 years, 4 months ago by timvolodine
Modified:
4 years, 4 months ago
Reviewers:
jam
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove dependency on test_runner from some components unittests. Remove test_runner::EnsureBlinkInitialized() calls in some components unittests. Instead add blink initialization to components/test/ run_all_unittests.cc via content::UnitTestTestSuite (on non-IOS platforms). This also allows to remove the dependency on components/test_runner from a few individual components. Also removes dependency on //ui/events/platform/x11 from two components/bookmarks/browser/ unit tests. BUG=634326 Committed: https://crrev.com/1774dc23b16b6e082f958fcc99545f18020241e1 Cr-Commit-Position: refs/heads/master@{#411202}

Patch Set 1 #

Patch Set 2 : actually leave the webcrypto/fuzzer as is because it's not a unit test #

Patch Set 3 : remove event_source_ as per jam's comment #

Patch Set 4 : update BUILD.gn dependencies #

Patch Set 5 : apply jam's fix for android from crrev.com/2233973003 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -46 lines) Patch
M components/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/bookmarks/browser/BUILD.gn View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download
M components/bookmarks/browser/bookmark_node_data_unittest.cc View 1 2 4 chunks +0 lines, -4 lines 0 comments Download
M components/bookmarks/browser/bookmark_utils_unittest.cc View 1 2 3 chunks +1 line, -19 lines 0 comments Download
M components/error_page/renderer/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M components/error_page/renderer/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M components/error_page/renderer/net_error_helper_core_unittest.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M components/subresource_filter/content/renderer/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M components/subresource_filter/content/renderer/document_subresource_filter_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M components/subresource_filter/content/renderer/subresource_filter_agent_unittest.cc View 2 chunks +1 line, -2 lines 0 comments Download
M components/test/run_all_unittests.cc View 3 chunks +10 lines, -2 lines 0 comments Download
M components/webcrypto/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M components/webcrypto/algorithms/test_helpers.cc View 2 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 42 (28 generated)
jam
to fix the tests, you can remove https://cs.chromium.org/chromium/src/components/bookmarks/browser/bookmark_utils_unittest.cc?rcl=0&l=44 and https://cs.chromium.org/chromium/src/components/bookmarks/browser/bookmark_node_data_unittest.cc?rcl=0&l=32 lgtm with that
4 years, 4 months ago (2016-08-09 23:58:43 UTC) #8
timvolodine
On 2016/08/09 23:58:43, jam wrote: > to fix the tests, you can remove > https://cs.chromium.org/chromium/src/components/bookmarks/browser/bookmark_utils_unittest.cc?rcl=0&l=44 ...
4 years, 4 months ago (2016-08-10 15:48:58 UTC) #16
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/2229943002/60001
4 years, 4 months ago (2016-08-10 15:51:00 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/49622)
4 years, 4 months ago (2016-08-10 15:55:09 UTC) #21
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/2229943002/60001
4 years, 4 months ago (2016-08-10 17:13:38 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/119968)
4 years, 4 months ago (2016-08-10 18:46:11 UTC) #25
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/2229943002/60001
4 years, 4 months ago (2016-08-10 18:47:36 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/120076)
4 years, 4 months ago (2016-08-10 20:36:15 UTC) #29
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/2229943002/60001
4 years, 4 months ago (2016-08-10 21:03:35 UTC) #31
jam
android is failing because the v8 data needs to be added to data_deps. here's the ...
4 years, 4 months ago (2016-08-10 21:50:19 UTC) #32
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/2229943002/80001
4 years, 4 months ago (2016-08-10 22:30:37 UTC) #37
timvolodine
On 2016/08/10 21:50:19, jam wrote: > android is failing because the v8 data needs to ...
4 years, 4 months ago (2016-08-10 22:37:35 UTC) #38
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-11 00:29:01 UTC) #40
commit-bot: I haz the power
4 years, 4 months ago (2016-08-11 00:31:38 UTC) #42
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1774dc23b16b6e082f958fcc99545f18020241e1
Cr-Commit-Position: refs/heads/master@{#411202}

Powered by Google App Engine
This is Rietveld 408576698