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

Issue 11801015: Fix PromoResourceServiceTest.NotificationPromoTest and make it use dynamic [future] dates. (Closed)

Created:
7 years, 11 months ago by Dan Beam
Modified:
7 years, 11 months ago
CC:
chromium-reviews, jochen (gone - plz use gerrit)
Visibility:
Public.

Description

Fix PromoResourceServiceTest.NotificationPromoTest and make it use dynamic [future] dates. R=rsesek@chromium.org BUG=168561 TEST=PromoResourceServiceTest.NotificationPromoTest passes after Jan 7 2013 5:40:75 PST Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175428

Patch Set 1 #

Total comments: 2

Patch Set 2 : jochen@ review #

Total comments: 2

Patch Set 3 : rsesek@ review #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -18 lines) Patch
M chrome/browser/web_resource/promo_resource_service_unittest.cc View 1 2 13 chunks +53 lines, -18 lines 1 comment Download

Messages

Total messages: 9 (0 generated)
Dan Beam
7 years, 11 months ago (2013-01-07 18:08:35 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/11801015/diff/1/chrome/browser/web_resource/promo_resource_service_unittest.cc File chrome/browser/web_resource/promo_resource_service_unittest.cc (right): https://codereview.chromium.org/11801015/diff/1/chrome/browser/web_resource/promo_resource_service_unittest.cc#newcode38 chrome/browser/web_resource/promo_resource_service_unittest.cc:38: status); this will construct a localized formatter, won't it? ...
7 years, 11 months ago (2013-01-07 18:26:22 UTC) #2
Dan Beam
https://codereview.chromium.org/11801015/diff/1/chrome/browser/web_resource/promo_resource_service_unittest.cc File chrome/browser/web_resource/promo_resource_service_unittest.cc (right): https://codereview.chromium.org/11801015/diff/1/chrome/browser/web_resource/promo_resource_service_unittest.cc#newcode38 chrome/browser/web_resource/promo_resource_service_unittest.cc:38: status); On 2013/01/07 18:26:22, jochen wrote: > this will ...
7 years, 11 months ago (2013-01-07 18:32:42 UTC) #3
jochen (gone - plz use gerrit)
lgtm, thx
7 years, 11 months ago (2013-01-07 18:36:13 UTC) #4
Robert Sesek
LGTM https://chromiumcodereview.appspot.com/11801015/diff/4001/chrome/browser/web_resource/promo_resource_service_unittest.cc File chrome/browser/web_resource/promo_resource_service_unittest.cc (right): https://chromiumcodereview.appspot.com/11801015/diff/4001/chrome/browser/web_resource/promo_resource_service_unittest.cc#newcode33 chrome/browser/web_resource/promo_resource_service_unittest.cc:33: const char* kDateFormat = "dd MMM yyyy HH:mm:ss ...
7 years, 11 months ago (2013-01-07 19:58:46 UTC) #5
Dan Beam
https://chromiumcodereview.appspot.com/11801015/diff/4001/chrome/browser/web_resource/promo_resource_service_unittest.cc File chrome/browser/web_resource/promo_resource_service_unittest.cc (right): https://chromiumcodereview.appspot.com/11801015/diff/4001/chrome/browser/web_resource/promo_resource_service_unittest.cc#newcode33 chrome/browser/web_resource/promo_resource_service_unittest.cc:33: const char* kDateFormat = "dd MMM yyyy HH:mm:ss zzz"; ...
7 years, 11 months ago (2013-01-07 20:13:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dbeam@chromium.org/11801015/9001
7 years, 11 months ago (2013-01-07 20:14:38 UTC) #7
commit-bot: I haz the power
Retried try job too often on win_aura for step(s) interactive_ui_tests
7 years, 11 months ago (2013-01-07 22:38:33 UTC) #8
achuithb
7 years, 11 months ago (2013-01-08 21:44:36 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/11801015/diff/9001/chrome/browser/web_resourc...
File chrome/browser/web_resource/promo_resource_service_unittest.cc (right):

https://codereview.chromium.org/11801015/diff/9001/chrome/browser/web_resourc...
chrome/browser/web_resource/promo_resource_service_unittest.cc:35:
std::pair<double, std::string> YearFromNow() {
Please add a function comment explaining the return value. FWIW, it's more
common to use out args for this kind of thing:
void GetYearFromNow(double* year, std::string* date_string);

This would also make the calling code more readable - year_from_now.first and
year_from_now.second are a little cryptic.

Powered by Google App Engine
This is Rietveld 408576698