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

Issue 1389923004: Fix the incorrectly named time points in VisitDatabaseTest.GetHistoryCount. (Closed)

Created:
5 years, 2 months ago by msramek
Modified:
5 years, 2 months ago
Reviewers:
lwchkg, sdefresne
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the incorrectly named time points in VisitDatabaseTest.GetHistoryCount. Previously, |yesterday| corresponded to two days ago, and |two_days_ago| corresponded to four days ago. This didn't matter for the correctness of the test, but should be fixed for consistency. BUG=510028 Committed: https://crrev.com/f314f82408c9427b2530360164b21f30e98144ff Cr-Commit-Position: refs/heads/master@{#354242}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase #

Patch Set 3 : Fixed the date. #

Total comments: 2

Patch Set 4 : FromString instead of FromUTCString #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -11 lines) Patch
M components/history/core/browser/visit_database_unittest.cc View 1 2 3 2 chunks +14 lines, -11 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
msramek
Hi guys, please have a look at this - it's a response of lwchkg@'s comments ...
5 years, 2 months ago (2015-10-06 16:08:23 UTC) #2
sdefresne
https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc File components/history/core/browser/visit_database_unittest.cc (right): https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc#newcode428 components/history/core/browser/visit_database_unittest.cc:428: Time yesterday = (today - TimeDelta::FromSeconds(1)).LocalMidnight(); Will this work ...
5 years, 2 months ago (2015-10-06 17:14:32 UTC) #3
lwchkg
https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc File components/history/core/browser/visit_database_unittest.cc (right): https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc#newcode428 components/history/core/browser/visit_database_unittest.cc:428: Time yesterday = (today - TimeDelta::FromSeconds(1)).LocalMidnight(); On 2015/10/06 17:14:32, ...
5 years, 2 months ago (2015-10-07 04:59:38 UTC) #4
sdefresne
https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc File components/history/core/browser/visit_database_unittest.cc (right): https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc#newcode428 components/history/core/browser/visit_database_unittest.cc:428: Time yesterday = (today - TimeDelta::FromSeconds(1)).LocalMidnight(); On 2015/10/07 at ...
5 years, 2 months ago (2015-10-07 07:42:54 UTC) #5
lwchkg
> Or you could fix that initial date instead of using time::Now(). Does not look ...
5 years, 2 months ago (2015-10-07 08:55:43 UTC) #6
sdefresne
https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc File components/history/core/browser/visit_database_unittest.cc (right): https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc#newcode428 components/history/core/browser/visit_database_unittest.cc:428: Time yesterday = (today - TimeDelta::FromSeconds(1)).LocalMidnight(); On 2015/10/07 at ...
5 years, 2 months ago (2015-10-07 13:55:36 UTC) #7
msramek
https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc File components/history/core/browser/visit_database_unittest.cc (right): https://codereview.chromium.org/1389923004/diff/1/components/history/core/browser/visit_database_unittest.cc#newcode428 components/history/core/browser/visit_database_unittest.cc:428: Time yesterday = (today - TimeDelta::FromSeconds(1)).LocalMidnight(); On 2015/10/07 13:55:36, ...
5 years, 2 months ago (2015-10-13 18:10:05 UTC) #8
lwchkg
I found a mistake getting the time at 07-07-2015. Let's see if fixing it makes ...
5 years, 2 months ago (2015-10-14 16:06:12 UTC) #9
lwchkg
> I tried to run this unittest in the Brazil timezone, and it failed. Not ...
5 years, 2 months ago (2015-10-14 16:32:27 UTC) #10
msramek
On 2015/10/14 16:32:27, lwchkg wrote: > > I tried to run this unittest in the ...
5 years, 2 months ago (2015-10-15 08:57:41 UTC) #11
msramek
https://codereview.chromium.org/1389923004/diff/40001/components/history/core/browser/visit_database_unittest.cc File components/history/core/browser/visit_database_unittest.cc (right): https://codereview.chromium.org/1389923004/diff/40001/components/history/core/browser/visit_database_unittest.cc#newcode423 components/history/core/browser/visit_database_unittest.cc:423: ASSERT_TRUE(Time::FromUTCString("2015-07-07", &today)); On 2015/10/14 16:06:11, lwchkg wrote: > Should ...
5 years, 2 months ago (2015-10-15 08:57:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1389923004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1389923004/60001
5 years, 2 months ago (2015-10-15 08:59:08 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 2 months ago (2015-10-15 09:35:14 UTC) #16
commit-bot: I haz the power
5 years, 2 months ago (2015-10-15 09:35:57 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f314f82408c9427b2530360164b21f30e98144ff
Cr-Commit-Position: refs/heads/master@{#354242}

Powered by Google App Engine
This is Rietveld 408576698