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

Issue 1162603004: Restore locales after tests (Closed)

Created:
5 years, 6 months ago by Olli Raula
Modified:
5 years, 4 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restore locales after tests Locales should be restored after tests and scoping should be used. Added restores and one restore changed to scoped version. Committed: https://crrev.com/3be75bf76ac061129ec2a9e887d5d50cfd016a56 Cr-Commit-Position: refs/heads/master@{#344453}

Patch Set 1 #

Patch Set 2 : Name changed AUTHORS #

Patch Set 3 : Make restores scoped #

Total comments: 1

Patch Set 4 : Move scope class to header #

Patch Set 5 : Add missing file #

Total comments: 6

Patch Set 6 : Splitted to cc and fixed other issues #

Patch Set 7 : ToT #

Patch Set 8 : Errors fixed #

Total comments: 6

Patch Set 9 : Fixes as suggested #

Total comments: 2

Patch Set 10 : Added spaces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -5 lines) Patch
M AUTHORS View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M base/BUILD.gn View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M base/base.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M base/i18n/case_conversion_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +3 lines, -4 lines 0 comments Download
M base/i18n/number_formatting_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M base/i18n/rtl_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -0 lines 0 comments Download
M base/i18n/time_formatting_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +6 lines, -0 lines 0 comments Download
A base/test/icu_test_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +29 lines, -0 lines 0 comments Download
A base/test/icu_test_util.cc View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (6 generated)
olli.syrjala
Could you review
5 years, 6 months ago (2015-05-29 12:44:33 UTC) #2
Olli Raula
Hi, could you review, I changed my name.
5 years, 6 months ago (2015-06-12 08:02:29 UTC) #3
Olli Raula
Ping, could you review this?
5 years, 5 months ago (2015-07-09 12:20:50 UTC) #4
Olli Raula
Mark: can you review as Jungshik is not awailable
5 years, 4 months ago (2015-08-17 07:53:39 UTC) #6
Mark Mentovai
These should use scopers so that an early return (such as via an ASSERT_*() macro) ...
5 years, 4 months ago (2015-08-17 14:17:27 UTC) #7
Olli Raula
Thanks for review! Issues fixed. Fixed also same issue in case_conversion_unittest.cc
5 years, 4 months ago (2015-08-18 13:00:17 UTC) #8
Mark Mentovai
https://codereview.chromium.org/1162603004/diff/40001/base/i18n/number_formatting_unittest.cc File base/i18n/number_formatting_unittest.cc (right): https://codereview.chromium.org/1162603004/diff/40001/base/i18n/number_formatting_unittest.cc#newcode16 base/i18n/number_formatting_unittest.cc:16: class ScopedSetICUDefaultLocale { You shouldn’t have to write this ...
5 years, 4 months ago (2015-08-18 13:18:14 UTC) #9
Olli Raula
Thanks for comments, lets do that way then. Is there some reason why not all ...
5 years, 4 months ago (2015-08-18 14:10:44 UTC) #10
Mark Mentovai
Probably no good reason. We’re not always consistent about how we namespace tests. My preference ...
5 years, 4 months ago (2015-08-18 14:13:19 UTC) #11
Olli Raula
Ah yeh, now it is there :)
5 years, 4 months ago (2015-08-18 14:29:29 UTC) #12
Mark Mentovai
https://codereview.chromium.org/1162603004/diff/80001/base/i18n/icu_test_util.h File base/i18n/icu_test_util.h (right): https://codereview.chromium.org/1162603004/diff/80001/base/i18n/icu_test_util.h#newcode5 base/i18n/icu_test_util.h:5: #ifndef ICU_TEST_UTIL_H_ Full paths: BASE_ICU_TEST_UTIL_H_. https://codereview.chromium.org/1162603004/diff/80001/base/i18n/icu_test_util.h#newcode14 base/i18n/icu_test_util.h:14: std::string default_locale; ...
5 years, 4 months ago (2015-08-18 14:40:08 UTC) #13
Olli Raula
Fixed, (also removed one space from authors).
5 years, 4 months ago (2015-08-19 12:41:03 UTC) #14
Mark Mentovai
LG with these changes. https://codereview.chromium.org/1162603004/diff/140001/base/i18n/case_conversion_unittest.cc File base/i18n/case_conversion_unittest.cc (right): https://codereview.chromium.org/1162603004/diff/140001/base/i18n/case_conversion_unittest.cc#newcode62 base/i18n/case_conversion_unittest.cc:62: ScopedSetICUDefaultLocale restore_object; Seeing ScopedSetICUDefaultLocale followed ...
5 years, 4 months ago (2015-08-19 13:37:16 UTC) #15
Olli Raula
Thanks for long list :), fixed
5 years, 4 months ago (2015-08-19 14:19:02 UTC) #16
Mark Mentovai
LGTM https://codereview.chromium.org/1162603004/diff/160001/base/test/icu_test_util.cc File base/test/icu_test_util.cc (right): https://codereview.chromium.org/1162603004/diff/160001/base/test/icu_test_util.cc#newcode11 base/test/icu_test_util.cc:11: namespace test { This too. https://codereview.chromium.org/1162603004/diff/160001/base/test/icu_test_util.h File base/test/icu_test_util.h ...
5 years, 4 months ago (2015-08-19 14:20:56 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1162603004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1162603004/180001
5 years, 4 months ago (2015-08-20 07:05:31 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/92668)
5 years, 4 months ago (2015-08-20 07:37:53 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1162603004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1162603004/180001
5 years, 4 months ago (2015-08-20 07:48:59 UTC) #24
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 4 months ago (2015-08-20 08:48:52 UTC) #25
commit-bot: I haz the power
5 years, 4 months ago (2015-08-20 08:49:24 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/3be75bf76ac061129ec2a9e887d5d50cfd016a56
Cr-Commit-Position: refs/heads/master@{#344453}

Powered by Google App Engine
This is Rietveld 408576698