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

Issue 987943002: Fix SysStrings unit test failure on Chromecast (Closed)

Created:
5 years, 9 months ago by halliwell
Modified:
5 years, 9 months ago
Reviewers:
Lei Zhang, lcwu1
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix SysStrings unit test failure on Chromecast Chromecast has a utf8 locale, and all calls to setlocale with non-NULL locale name fail. Some of these issues were addressed previously in https://codereview.chromium.org/790903003/ but we still had failures remaining in SysStrings unit tests, in particular ScopedLocale was failing to set the locale. BUG=internal b/19627216 Committed: https://crrev.com/2a7adaba24106ab82ae09d36bc7cf1668a14fccd Cr-Commit-Position: refs/heads/master@{#319814}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Trying a different approach #

Patch Set 3 : gn and gyp changes to define SYSTEM_NATIVE_UTF8 for base_unittests #

Total comments: 2

Patch Set 4 : Moving SYSTEM_NATIVE_UTF8 setup to base_unittest gyp target #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -1 line) Patch
M base/BUILD.gn View 1 2 3 chunks +9 lines, -1 line 0 comments Download
M base/base.gyp View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M base/strings/sys_string_conversions_unittest.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (2 generated)
halliwell
5 years, 9 months ago (2015-03-07 01:14:28 UTC) #2
Lei Zhang
https://codereview.chromium.org/987943002/diff/1/base/test/scoped_locale.cc File base/test/scoped_locale.cc (right): https://codereview.chromium.org/987943002/diff/1/base/test/scoped_locale.cc#newcode16 base/test/scoped_locale.cc:16: EXPECT_TRUE(locale.find("utf-8") != std::string::npos); I don't think this is right. ...
5 years, 9 months ago (2015-03-07 01:30:19 UTC) #3
halliwell
On 2015/03/07 01:30:19, Lei Zhang wrote: > https://codereview.chromium.org/987943002/diff/1/base/test/scoped_locale.cc > File base/test/scoped_locale.cc (right): > > https://codereview.chromium.org/987943002/diff/1/base/test/scoped_locale.cc#newcode16 ...
5 years, 9 months ago (2015-03-07 02:31:14 UTC) #4
halliwell
On 2015/03/07 02:31:14, halliwell wrote: > On 2015/03/07 01:30:19, Lei Zhang wrote: > > https://codereview.chromium.org/987943002/diff/1/base/test/scoped_locale.cc ...
5 years, 9 months ago (2015-03-07 02:42:49 UTC) #5
Lei Zhang
lgtm
5 years, 9 months ago (2015-03-07 03:03:24 UTC) #6
halliwell
On 2015/03/07 03:03:24, Lei Zhang wrote: > lgtm @thestig - please ptal at gyp+gn changes.
5 years, 9 months ago (2015-03-09 15:21:35 UTC) #7
Lei Zhang
https://codereview.chromium.org/987943002/diff/40001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/987943002/diff/40001/base/base.gypi#newcode1054 base/base.gypi:1054: # Enable more direct string conversions on platforms with ...
5 years, 9 months ago (2015-03-09 22:33:35 UTC) #8
halliwell
https://codereview.chromium.org/987943002/diff/40001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/987943002/diff/40001/base/base.gypi#newcode1054 base/base.gypi:1054: # Enable more direct string conversions on platforms with ...
5 years, 9 months ago (2015-03-09 22:50:21 UTC) #9
Lei Zhang
lgtm++
5 years, 9 months ago (2015-03-09 23:01:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/987943002/60001
5 years, 9 months ago (2015-03-09 23:03:11 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 9 months ago (2015-03-10 01:51:34 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-10 01:52:24 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2a7adaba24106ab82ae09d36bc7cf1668a14fccd
Cr-Commit-Position: refs/heads/master@{#319814}

Powered by Google App Engine
This is Rietveld 408576698