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

Issue 1464503002: Fix resource-related issues in views_unittests (Closed)

Created:
5 years, 1 month ago by Tomasz Moniuszko
Modified:
5 years ago
Reviewers:
tfarina, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix resource-related issues in views_unittests Make sure ui_test.pak file is available for views_unittests. Also make views_unittests independent from chrome locale pak files by replacing l10n_util::GetApplicationLocale() with base::i18n::GetConfiguredLocale() for tests. The first function needs chrome locale pak files to exist or it returns empty locale string. BUG= TEST=Remove all output files. Build only views_unittests. Run views_unittests. Committed: https://crrev.com/20307b827528c927cb508f8057838f92b3913899 Cr-Commit-Position: refs/heads/master@{#362370}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add dependency also in GYP build #

Patch Set 3 : Make views_unittests independent from locale pak files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M ui/views/BUILD.gn View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/slider_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 5 chunks +4 lines, -4 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (7 generated)
Tomasz Moniuszko
5 years, 1 month ago (2015-11-19 15:40:54 UTC) #3
sky
https://codereview.chromium.org/1464503002/diff/1/ui/views/BUILD.gn File ui/views/BUILD.gn (right): https://codereview.chromium.org/1464503002/diff/1/ui/views/BUILD.gn#newcode215 ui/views/BUILD.gn:215: "//chrome:packed_resources", Why do we need chrome resources? I don't ...
5 years, 1 month ago (2015-11-19 20:44:12 UTC) #4
Tomasz Moniuszko
On 2015/11/19 20:44:12, sky wrote: > https://codereview.chromium.org/1464503002/diff/1/ui/views/BUILD.gn > File ui/views/BUILD.gn (right): > > https://codereview.chromium.org/1464503002/diff/1/ui/views/BUILD.gn#newcode215 > ...
5 years, 1 month ago (2015-11-20 15:03:44 UTC) #5
sky
These tests aren't crashing on the waterfall now. How are they working? -Scott On Fri, ...
5 years, 1 month ago (2015-11-20 16:29:46 UTC) #6
Tomasz Moniuszko
On 2015/11/20 16:29:46, sky wrote: > These tests aren't crashing on the waterfall now. How ...
5 years, 1 month ago (2015-11-23 09:47:53 UTC) #7
sky
I get the ui_test.pak dep, but not the chrome one. What resources are being used ...
5 years, 1 month ago (2015-11-23 16:08:50 UTC) #8
tfarina
On Mon, Nov 23, 2015 at 2:08 PM, Scott Violet <sky@chromium.org> wrote: > I get ...
5 years, 1 month ago (2015-11-23 16:28:33 UTC) #9
Tomasz Moniuszko
On 2015/11/23 16:28:33, tfarina wrote: > Tomasz, could explain better what are you doing? Did ...
5 years ago (2015-11-24 11:43:52 UTC) #10
sky
On Fri, Nov 20, 2015 at 7:03 AM, <tmoniuszko@opera.com> wrote: > On 2015/11/19 20:44:12, sky ...
5 years ago (2015-11-24 16:34:24 UTC) #11
Tomasz Moniuszko
On 2015/11/24 16:34:24, sky wrote: > Is there a way to detect this case from ...
5 years ago (2015-11-27 11:32:41 UTC) #13
sky
LGTM
5 years ago (2015-11-30 17:12:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1464503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1464503002/40001
5 years ago (2015-12-01 07:57:07 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-01 10:45:36 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/20307b827528c927cb508f8057838f92b3913899 Cr-Commit-Position: refs/heads/master@{#362370}
5 years ago (2015-12-01 10:46:34 UTC) #20
tfarina
5 years ago (2015-12-01 12:10:18 UTC) #22
Message was sent while issue was closed.
Sorry, I missed that!

Thanks for figuring out a better way to do this and making this change!

The changes LGTM 2!

Powered by Google App Engine
This is Rietveld 408576698