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

Issue 856163002: Eliminate components_unittests' dependence on chrome resources. (Closed)

Created:
5 years, 11 months ago by jam
Modified:
5 years, 11 months ago
Reviewers:
Nico, M-A Ruel, blundell
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Eliminate components_unittests' dependence on chrome resources. This CL changes components_unittests to create its own pakfile rather than relying on the chrome pakfile. To do this it adds a repack step that repacks the pakfiles that components_unittests needs into a components_unittests_resources.pak file, and then loads that pakfile explicitly. This change means that components_unittests now passes after a clean build, whereas before it would fail due to missing resources. This is based on blundell's change: https://codereview.chromium.org/258043003/ BUG=348563, 450464 R=blundell@chromium.org, thakis@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/045c9bf1d36f35643a077891dedf24054f2032a3 Committed: https://chromium.googlesource.com/chromium/src/+/e98e8e7654b7e51f98e92514897f8e1284eaa571

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : try to fix ios #

Patch Set 6 : try to fix android and ios #

Patch Set 7 : disable one failing test on android and ios #

Total comments: 6

Patch Set 8 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -53 lines) Patch
M components/bookmarks/browser/bookmark_model_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 5 chunks +22 lines, -5 lines 0 comments Download
M components/components_unittests.isolate View 1 2 3 4 5 6 7 3 chunks +1 line, -10 lines 0 comments Download
M components/test/run_all_unittests.cc View 1 2 3 4 5 4 chunks +6 lines, -38 lines 0 comments Download

Messages

Total messages: 17 (5 generated)
jam
Colin: this is based on your cl, and it looks like it passes now.
5 years, 11 months ago (2015-01-21 03:15:05 UTC) #3
Nico
lgtm! https://codereview.chromium.org/856163002/diff/160001/components/components_unittests.isolate File components/components_unittests.isolate (right): https://codereview.chromium.org/856163002/diff/160001/components/components_unittests.isolate#newcode6 components/components_unittests.isolate:6: ['OS=="android" or OS=="linux" or OS=="mac" or OS=="win"', { ...
5 years, 11 months ago (2015-01-21 05:57:57 UTC) #6
jam
thanks for the quick review https://codereview.chromium.org/856163002/diff/160001/components/components_unittests.isolate File components/components_unittests.isolate (right): https://codereview.chromium.org/856163002/diff/160001/components/components_unittests.isolate#newcode6 components/components_unittests.isolate:6: ['OS=="android" or OS=="linux" or ...
5 years, 11 months ago (2015-01-21 06:00:06 UTC) #7
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/045c9bf1d36f35643a077891dedf24054f2032a3 Cr-Commit-Position: refs/heads/master@{#312306}
5 years, 11 months ago (2015-01-21 06:06:00 UTC) #8
jam
Committed patchset #7 (id:160001) manually as 045c9bf1d36f35643a077891dedf24054f2032a3 (tree was closed).
5 years, 11 months ago (2015-01-21 06:06:10 UTC) #9
blundell
lgtm
5 years, 11 months ago (2015-01-21 09:31:43 UTC) #10
sergeyv
A revert of this CL (patchset #7 id:160001) has been created in https://codereview.chromium.org/858203002/ by sergeyv@chromium.org. ...
5 years, 11 months ago (2015-01-21 13:09:17 UTC) #11
M-A Ruel
BTW, the reason it showed up on official build is because of the "archive after ...
5 years, 11 months ago (2015-01-21 13:55:45 UTC) #13
jam
doh, I watched the tree and saw saw one green build so I thought it ...
5 years, 11 months ago (2015-01-21 15:12:15 UTC) #14
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/e98e8e7654b7e51f98e92514897f8e1284eaa571 Cr-Commit-Position: refs/heads/master@{#312390}
5 years, 11 months ago (2015-01-21 15:27:14 UTC) #15
jam
Committed patchset #8 (id:180001) manually as e98e8e7654b7e51f98e92514897f8e1284eaa571 (tree was closed).
5 years, 11 months ago (2015-01-21 15:27:27 UTC) #16
chrishtr
5 years, 11 months ago (2015-01-21 23:08:27 UTC) #17
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:180001) has been created in
https://codereview.chromium.org/867473002/ by chrishtr@chromium.org.

The reason for reverting is: Causes Mac ASAN bot to fail on
BookmarkModelTest.Sort. The failures look the same as those referenced in
crbug.com/450464.

https://build.chromium.org/p/chromium.memory/builders/Mac%20ASan%2064%20Tests....

Powered by Google App Engine
This is Rietveld 408576698