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

Issue 1218043003: Fixed tests TimeFormattingTest.TimeFormatDateUS & GB. (Closed)

Created:
5 years, 5 months ago by Vitaly Baranov
Modified:
5 years, 5 months ago
Reviewers:
jww, danakj
CC:
chromium-reviews, erikwright+watch_chromium.org, jshin+watch_chromium.org, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed tests TimeFormattingTest.TimeFormatDateUS & GB. Tests TimeFormattingTest.TimeFormatDateUS and TimeFormattingTest.TimeFormatDateGB were failed previously in some time zones because difference between local time and GMT is time-dependent. Committed: https://crrev.com/846dea256fbf77f226bc27317a5c9181c6dd3507 Cr-Commit-Position: refs/heads/master@{#337021}

Patch Set 1 #

Patch Set 2 : Output format for time zone changed to more correct #

Total comments: 7

Patch Set 3 : A few corrections. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -4 lines) Patch
M base/i18n/time_formatting_unittest.cc View 1 2 4 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
Vitaly Baranov
On 2015/06/30 14:13:34, Vitaly Baranov wrote: > mailto:vitbar@yandex-team.ru changed reviewers: > + mailto:danakj@chromium.org, mailto:jww@chromium.org Without ...
5 years, 5 months ago (2015-06-30 14:17:44 UTC) #2
Vitaly Baranov
On 2015/06/30 14:17:44, Vitaly Baranov wrote: > On 2015/06/30 14:13:34, Vitaly Baranov wrote: > > ...
5 years, 5 months ago (2015-06-30 14:41:52 UTC) #3
danakj
LGTM Please wrap your CL description at 72 chars. https://codereview.chromium.org/1218043003/diff/20001/base/i18n/time_formatting_unittest.cc File base/i18n/time_formatting_unittest.cc (right): https://codereview.chromium.org/1218043003/diff/20001/base/i18n/time_formatting_unittest.cc#newcode35 base/i18n/time_formatting_unittest.cc:35: ...
5 years, 5 months ago (2015-06-30 18:59:39 UTC) #4
jww
lgtm https://codereview.chromium.org/1218043003/diff/20001/base/i18n/time_formatting_unittest.cc File base/i18n/time_formatting_unittest.cc (right): https://codereview.chromium.org/1218043003/diff/20001/base/i18n/time_formatting_unittest.cc#newcode33 base/i18n/time_formatting_unittest.cc:33: EXPECT_TRUE(U_SUCCESS(status)); nit: I would make this an ASSERT_TRUE ...
5 years, 5 months ago (2015-06-30 19:16:56 UTC) #5
Vitaly Baranov
https://codereview.chromium.org/1218043003/diff/20001/base/i18n/time_formatting_unittest.cc File base/i18n/time_formatting_unittest.cc (right): https://codereview.chromium.org/1218043003/diff/20001/base/i18n/time_formatting_unittest.cc#newcode33 base/i18n/time_formatting_unittest.cc:33: EXPECT_TRUE(U_SUCCESS(status)); On 2015/06/30 19:16:56, jww wrote: > nit: I ...
5 years, 5 months ago (2015-07-01 14:32:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218043003/40001
5 years, 5 months ago (2015-07-01 14:33:35 UTC) #9
commit-bot: I haz the power
The author vitbar@yandex-team.ru has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-01 14:33:38 UTC) #10
commit-bot: I haz the power
The author vitbar@yandex-team.ru has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 5 months ago (2015-07-01 15:01:46 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-01 15:02:32 UTC) #12
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/846dea256fbf77f226bc27317a5c9181c6dd3507 Cr-Commit-Position: refs/heads/master@{#337021}
5 years, 5 months ago (2015-07-01 15:03:26 UTC) #13
jww
5 years, 5 months ago (2015-07-01 17:47:36 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/1218043003/diff/20001/base/i18n/time_formatti...
File base/i18n/time_formatting_unittest.cc (right):

https://codereview.chromium.org/1218043003/diff/20001/base/i18n/time_formatti...
base/i18n/time_formatting_unittest.cc:33: EXPECT_TRUE(U_SUCCESS(status));
On 2015/07/01 14:32:51, Vitaly Baranov wrote:
> On 2015/06/30 19:16:56, jww wrote:
> > nit: I would make this an ASSERT_TRUE as it would be very surprising for
this
> to
> > fail, and the rest of the test doesn't make sense if it fails.
> 
> I cannot use ASSERT_TRUE here because the function returns base::string16 and
> macro ASSERT_TRUE is expanded to "...;return;" i.e. ASSERT_TRUE returns void
> after generating a failure message.

Good point :-)

Powered by Google App Engine
This is Rietveld 408576698