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

Issue 10022008: Fix flakiness in MetricsServiceTest.CrashRenderers (Closed)

Created:
8 years, 8 months ago by Ilya Sherman
Modified:
8 years, 8 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things)
Visibility:
Public.

Description

Fix flakiness in MetricsServiceTest.CrashRenderers The test had a race condition because both the test code and the code being tested were listening for the same notification. The results of the test depended on the order in which these notifications were processed. BUG=18738 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=131534

Patch Set 1 #

Total comments: 4

Patch Set 2 : Loop to avoid the race condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -3 lines) Patch
M chrome/browser/metrics/metrics_service_browsertest.cc View 1 2 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Ilya Sherman
8 years, 8 months ago (2012-04-07 01:22:09 UTC) #1
jar (doing other things)
https://chromiumcodereview.appspot.com/10022008/diff/1/chrome/browser/metrics/metrics_service_browsertest.cc File chrome/browser/metrics/metrics_service_browsertest.cc (right): https://chromiumcodereview.appspot.com/10022008/diff/1/chrome/browser/metrics/metrics_service_browsertest.cc#newcode88 chrome/browser/metrics/metrics_service_browsertest.cc:88: ui_test_utils::RunAllPendingInMessageLoop(); This pattern always scares me... as it is ...
8 years, 8 months ago (2012-04-07 02:46:48 UTC) #2
Ilya Sherman
https://chromiumcodereview.appspot.com/10022008/diff/1/chrome/browser/metrics/metrics_service_browsertest.cc File chrome/browser/metrics/metrics_service_browsertest.cc (right): https://chromiumcodereview.appspot.com/10022008/diff/1/chrome/browser/metrics/metrics_service_browsertest.cc#newcode88 chrome/browser/metrics/metrics_service_browsertest.cc:88: ui_test_utils::RunAllPendingInMessageLoop(); On 2012/04/07 02:46:48, jar wrote: > This pattern ...
8 years, 8 months ago (2012-04-10 01:00:25 UTC) #3
jar (doing other things)
https://chromiumcodereview.appspot.com/10022008/diff/1/chrome/browser/metrics/metrics_service_browsertest.cc File chrome/browser/metrics/metrics_service_browsertest.cc (right): https://chromiumcodereview.appspot.com/10022008/diff/1/chrome/browser/metrics/metrics_service_browsertest.cc#newcode88 chrome/browser/metrics/metrics_service_browsertest.cc:88: ui_test_utils::RunAllPendingInMessageLoop(); The reason I was after outputting something is ...
8 years, 8 months ago (2012-04-10 01:32:21 UTC) #4
Ilya Sherman
https://chromiumcodereview.appspot.com/10022008/diff/1/chrome/browser/metrics/metrics_service_browsertest.cc File chrome/browser/metrics/metrics_service_browsertest.cc (right): https://chromiumcodereview.appspot.com/10022008/diff/1/chrome/browser/metrics/metrics_service_browsertest.cc#newcode88 chrome/browser/metrics/metrics_service_browsertest.cc:88: ui_test_utils::RunAllPendingInMessageLoop(); On 2012/04/10 01:32:22, jar wrote: > The reason ...
8 years, 8 months ago (2012-04-10 01:33:53 UTC) #5
jar (doing other things)
lgtm
8 years, 8 months ago (2012-04-10 01:39:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/10022008/8001
8 years, 8 months ago (2012-04-10 01:52:15 UTC) #7
commit-bot: I haz the power
8 years, 8 months ago (2012-04-10 04:03:01 UTC) #8
Change committed as 131534

Powered by Google App Engine
This is Rietveld 408576698