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

Issue 139413005: Add tests for TimeRemainingLong() and TimeDurationLong() (Closed)

Created:
6 years, 10 months ago by Thiemo Nagel
Modified:
6 years, 9 months ago
CC:
chromium-reviews, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Not going to land -- superseded by https://codereview.chromium.org/147443007/ Add tests for TimeRemainingLong() and TimeDurationLong() BUG=none TEST=improves test coverage

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Re-formatted according to Bartosz' suggestions #

Total comments: 8

Patch Set 3 : More fixes/improvements, as suggested by Bartosz #

Total comments: 1

Patch Set 4 : fresh attempt following Jungshik's review #

Patch Set 5 : Rebased #

Patch Set 6 : Variant with less line wrapping #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -40 lines) Patch
M ui/base/l10n/time_format_unittest.cc View 1 2 3 4 5 6 2 chunks +135 lines, -40 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Thiemo Nagel
Hi Bartosz, could you please take a look? Thanks, Thiemo
6 years, 10 months ago (2014-01-29 15:22:07 UTC) #1
bartfab (slow)
https://codereview.chromium.org/139413005/diff/60001/ui/base/l10n/time_format_unittest.cc File ui/base/l10n/time_format_unittest.cc (right): https://codereview.chromium.org/139413005/diff/60001/ui/base/l10n/time_format_unittest.cc#newcode21 ui/base/l10n/time_format_unittest.cc:21: const base::string16 expect(ASCIIToUTF16(expect_ascii)); Nit: s/expect/expected/ https://codereview.chromium.org/139413005/diff/60001/ui/base/l10n/time_format_unittest.cc#newcode22 ui/base/l10n/time_format_unittest.cc:22: const base::string16 ...
6 years, 10 months ago (2014-01-29 15:46:16 UTC) #2
Thiemo Nagel
Could you please take another look? Thanks, Thiemo https://codereview.chromium.org/139413005/diff/60001/ui/base/l10n/time_format_unittest.cc File ui/base/l10n/time_format_unittest.cc (right): https://codereview.chromium.org/139413005/diff/60001/ui/base/l10n/time_format_unittest.cc#newcode21 ui/base/l10n/time_format_unittest.cc:21: const ...
6 years, 10 months ago (2014-01-29 16:18:05 UTC) #3
bartfab (slow)
https://codereview.chromium.org/139413005/diff/70001/ui/base/l10n/time_format_unittest.cc File ui/base/l10n/time_format_unittest.cc (right): https://codereview.chromium.org/139413005/diff/70001/ui/base/l10n/time_format_unittest.cc#newcode24 ui/base/l10n/time_format_unittest.cc:24: const base::string16 ond(ASCIIToUTF16("ond")); Nit: No longer used. https://codereview.chromium.org/139413005/diff/70001/ui/base/l10n/time_format_unittest.cc#newcode25 ui/base/l10n/time_format_unittest.cc:25: ...
6 years, 10 months ago (2014-01-31 12:58:22 UTC) #4
Thiemo Nagel
Hi Jungshik, I've extended test coverage in time_format_unittest.cc to include TimeRemainingLong() and TimeDurationLong(). Could you ...
6 years, 10 months ago (2014-01-31 14:10:36 UTC) #5
jungshik at Google
https://codereview.chromium.org/139413005/diff/110001/ui/base/l10n/time_format_unittest.cc File ui/base/l10n/time_format_unittest.cc (right): https://codereview.chromium.org/139413005/diff/110001/ui/base/l10n/time_format_unittest.cc#newcode35 ui/base/l10n/time_format_unittest.cc:35: ASCIIToUTF16("ond")); This string manipulation is really hacky, I'm afraid. ...
6 years, 10 months ago (2014-02-03 18:03:01 UTC) #6
Thiemo Nagel
I've uploaded a new attempt: One test function per TimeFormat method, very straight-forward, no hacks, ...
6 years, 10 months ago (2014-02-03 22:21:27 UTC) #7
jungshik at Google
On 2014/02/03 22:21:27, Thiemo Nagel wrote: > I've uploaded a new attempt: One test function ...
6 years, 10 months ago (2014-02-03 23:35:41 UTC) #8
Thiemo Nagel
> I usually set up a 'giant' array of structs with input params and expected ...
6 years, 10 months ago (2014-02-04 21:31:24 UTC) #9
Thiemo Nagel
6 years, 10 months ago (2014-02-04 22:13:49 UTC) #10
Just uploaded another variant that has much less line wrappings.  What do you
think?

Powered by Google App Engine
This is Rietveld 408576698