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

Issue 11271024: Fix DeviceStatusCollectorTest.MaxStoredPeriods. (Closed)

Created:
8 years, 1 month ago by Joao da Silva
Modified:
8 years, 1 month ago
CC:
chromium-reviews, Ryan Sleevi, jar (doing other things)
Visibility:
Public.

Description

Fix DeviceStatusCollectorTest.MaxStoredPeriods. BUG=157848 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168788

Patch Set 1 #

Total comments: 4

Patch Set 2 : Using a fixed time, rebased #

Total comments: 3

Patch Set 3 : rebased #

Patch Set 4 : yet another fix #

Patch Set 5 : override timezone to fix flakiness in bots #

Patch Set 6 : nit #

Patch Set 7 : rebase #

Total comments: 8

Patch Set 8 : Moved the DeviceStatusCollectorTest to browser_tests #

Patch Set 9 : Exclude test #

Patch Set 10 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -558 lines) Patch
M chrome/browser/policy/device_status_collector.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
A + chrome/browser/policy/device_status_collector_browsertest.cc View 1 2 3 4 5 6 7 8 chunks +16 lines, -9 lines 0 comments Download
D chrome/browser/policy/device_status_collector_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -542 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 4 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Joao da Silva
8 years, 1 month ago (2012-10-25 14:21:14 UTC) #1
Mattias Nissler (ping if slow)
https://codereview.chromium.org/11271024/diff/1/chrome/browser/policy/device_status_collector_unittest.cc File chrome/browser/policy/device_status_collector_unittest.cc (right): https://codereview.chromium.org/11271024/diff/1/chrome/browser/policy/device_status_collector_unittest.cc#newcode346 chrome/browser/policy/device_status_collector_unittest.cc:346: Time baseline = Time::Now().LocalMidnight(); One thing: Should we convert ...
8 years, 1 month ago (2012-10-25 14:27:19 UTC) #2
bartfab (slow)
https://codereview.chromium.org/11271024/diff/1/chrome/browser/policy/device_status_collector_unittest.cc File chrome/browser/policy/device_status_collector_unittest.cc (right): https://codereview.chromium.org/11271024/diff/1/chrome/browser/policy/device_status_collector_unittest.cc#newcode336 chrome/browser/policy/device_status_collector_unittest.cc:336: TEST_F(DeviceStatusCollectorTest, MaxStoredPeriods) { This test has been disabled in ...
8 years, 1 month ago (2012-10-25 14:30:49 UTC) #3
Joao da Silva
PTAL https://codereview.chromium.org/11271024/diff/1/chrome/browser/policy/device_status_collector_unittest.cc File chrome/browser/policy/device_status_collector_unittest.cc (right): https://codereview.chromium.org/11271024/diff/1/chrome/browser/policy/device_status_collector_unittest.cc#newcode336 chrome/browser/policy/device_status_collector_unittest.cc:336: TEST_F(DeviceStatusCollectorTest, MaxStoredPeriods) { On 2012/10/25 14:30:49, bartfab wrote: ...
8 years, 1 month ago (2012-10-25 15:24:17 UTC) #4
bartfab (slow)
lgtm
8 years, 1 month ago (2012-10-26 09:35:08 UTC) #5
Patrick Dubroy
https://codereview.chromium.org/11271024/diff/5002/chrome/browser/policy/device_status_collector_unittest.cc File chrome/browser/policy/device_status_collector_unittest.cc (right): https://codereview.chromium.org/11271024/diff/5002/chrome/browser/policy/device_status_collector_unittest.cc#newcode204 chrome/browser/policy/device_status_collector_unittest.cc:204: EXPECT_TRUE(TestBaselineTime() - timestamp < TimeDelta::FromMinutes(10)); Isn't the delta always ...
8 years, 1 month ago (2012-10-26 09:36:46 UTC) #6
Joao da Silva
@dubroy: PTAL http://codereview.chromium.org/11271024/diff/5002/chrome/browser/policy/device_status_collector_unittest.cc File chrome/browser/policy/device_status_collector_unittest.cc (right): http://codereview.chromium.org/11271024/diff/5002/chrome/browser/policy/device_status_collector_unittest.cc#newcode204 chrome/browser/policy/device_status_collector_unittest.cc:204: EXPECT_TRUE(TestBaselineTime() - timestamp < TimeDelta::FromMinutes(10)); On 2012/10/26 ...
8 years, 1 month ago (2012-11-15 13:25:48 UTC) #7
Patrick Dubroy
LGTM, though I'm not sure this test is really that useful. It's not testing anything ...
8 years, 1 month ago (2012-11-15 13:53:01 UTC) #8
Joao da Silva
So the reason this kept failing on the bot was due to its timezone. Running ...
8 years, 1 month ago (2012-11-16 09:31:21 UTC) #9
Patrick Dubroy
lgtm
8 years, 1 month ago (2012-11-16 10:30:30 UTC) #10
Paweł Hajdan Jr.
LGTM!
8 years, 1 month ago (2012-11-16 17:38:41 UTC) #11
Nico
lgtm, but I'm not a base owner
8 years, 1 month ago (2012-11-16 18:21:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/11271024/16005
8 years, 1 month ago (2012-11-16 18:22:08 UTC) #13
commit-bot: I haz the power
Failed to apply patch for chrome/browser/policy/device_status_collector_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-16 18:22:11 UTC) #14
Joao da Silva
Thanks all for the reviews. @jar: please have a look at the base/ changes, do ...
8 years, 1 month ago (2012-11-16 18:29:09 UTC) #15
jar (doing other things)
Generally things only go into base when we have a multitude of users of the ...
8 years, 1 month ago (2012-11-16 20:29:22 UTC) #16
jar (doing other things)
+cc Ryan, who may comment on the planned refactor to put the env changing tests ...
8 years, 1 month ago (2012-11-16 21:38:22 UTC) #17
Ryan Sleevi
So Jim briefly discussed this with me as an overview, and I gave him some ...
8 years, 1 month ago (2012-11-16 22:20:48 UTC) #18
Joao da Silva
Thanks for the comments. I've scaled this back a bit to just fix the test ...
8 years, 1 month ago (2012-11-20 09:10:51 UTC) #19
bartfab (slow)
Still lgtm - I am not one of the original authors though. I know little ...
8 years, 1 month ago (2012-11-20 10:44:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joaodasilva@chromium.org/11271024/17018
8 years, 1 month ago (2012-11-20 10:45:58 UTC) #21
Joao da Silva
On 2012/11/20 10:44:03, bartfab wrote: > Still lgtm - I am not one of the ...
8 years, 1 month ago (2012-11-20 10:46:22 UTC) #22
Mattias Nissler (ping if slow)
LGTM
8 years, 1 month ago (2012-11-20 11:26:49 UTC) #23
bartfab (slow)
Meh, terrible memory. Yes, that stuff I wrote :). On 2012/11/20 10:46:22, Joao da Silva ...
8 years, 1 month ago (2012-11-20 11:56:37 UTC) #24
commit-bot: I haz the power
8 years, 1 month ago (2012-11-20 12:51:37 UTC) #25
Change committed as 168788

Powered by Google App Engine
This is Rietveld 408576698