summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGordana.Cmiljanovic@imgtec.com <Gordana.Cmiljanovic@imgtec.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-01 23:08:36 +0000
committerGordana.Cmiljanovic@imgtec.com <Gordana.Cmiljanovic@imgtec.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-01 23:08:36 +0000
commit69b532ba0047e3c3fa5d216f418f16039fc35d33 (patch)
treeee698181fdfe12b7ed526ad261ca4be4acaeef05
parent2a19354a526c878fb6c12a3d2ea55aa73bed9c44 (diff)
downloadchromium_src-69b532ba0047e3c3fa5d216f418f16039fc35d33.zip
chromium_src-69b532ba0047e3c3fa5d216f418f16039fc35d33.tar.gz
chromium_src-69b532ba0047e3c3fa5d216f418f16039fc35d33.tar.bz2
unit_tests: Increase date format precision in promo_resource_service_unittest
With the current precision the following tests: PromoResourceServiceTest.NotificationPromoCompatNoStringsTest, PromoResourceServiceTest.NotificationPromoCompatPayloadStringsTest, PromoResourceServiceTest.NotificationPromoTest are failing if the time zone is set to Beijing. Reason for failure: China Standard Time (CST), which is GMT+8, is interpreted as Central Standard Time (GMT-6). Increasing precision generates unique string for all time zones. TEST=Run unit_tests using telemetry on Android devices BUG=358714 Review URL: https://codereview.chromium.org/221063002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260977 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/web_resource/promo_resource_service_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/web_resource/promo_resource_service_unittest.cc b/chrome/browser/web_resource/promo_resource_service_unittest.cc
index 80ed3dc..97cac31 100644
--- a/chrome/browser/web_resource/promo_resource_service_unittest.cc
+++ b/chrome/browser/web_resource/promo_resource_service_unittest.cc
@@ -30,7 +30,7 @@
namespace {
-const char kDateFormat[] = "dd MMM yyyy HH:mm:ss zzz";
+const char kDateFormat[] = "dd MMM yyyy HH:mm:ss zzzz";
bool YearFromNow(double* date_epoch, std::string* date_string) {
*date_epoch = (base::Time::Now() + base::TimeDelta::FromDays(365)).ToTimeT();