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

Issue 10909037: Redirect USER_DATA_DIR for GoogleUpdateTest and FirstRunTest. (Closed)

Created:
8 years, 3 months ago by Mattias Nissler (ping if slow)
Modified:
8 years, 3 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Redirect USER_DATA_DIR for GoogleUpdateTest and FirstRunTest. They used to write to the default user data dir, which breaks test isolation and is flaky due to leaking state. BUG=chromium:146032 TEST=unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154618

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address nit, make |temp_dir_| private. #

Patch Set 3 : Fix FirstRunTest as well... #

Patch Set 4 : OVERRIDE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -1 line) Patch
M chrome/browser/first_run/first_run_unittest.cc View 1 2 3 1 chunk +16 lines, -1 line 0 comments Download
M chrome/browser/google/google_update_settings_unittest.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mattias Nissler (ping if slow)
Please review.
8 years, 3 months ago (2012-08-31 20:41:55 UTC) #1
Lei Zhang
LGTM with nit below http://codereview.chromium.org/10909037/diff/1/chrome/browser/google/google_update_settings_unittest.cc File chrome/browser/google/google_update_settings_unittest.cc (right): http://codereview.chromium.org/10909037/diff/1/chrome/browser/google/google_update_settings_unittest.cc#newcode17 chrome/browser/google/google_update_settings_unittest.cc:17: GoogleUpdateTest() {} needs a virtual ...
8 years, 3 months ago (2012-08-31 20:49:48 UTC) #2
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10909037/diff/1/chrome/browser/google/google_update_settings_unittest.cc File chrome/browser/google/google_update_settings_unittest.cc (right): http://codereview.chromium.org/10909037/diff/1/chrome/browser/google/google_update_settings_unittest.cc#newcode17 chrome/browser/google/google_update_settings_unittest.cc:17: GoogleUpdateTest() {} On 2012/08/31 20:49:48, Lei Zhang wrote: > ...
8 years, 3 months ago (2012-08-31 20:56:18 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10909037/9001
8 years, 3 months ago (2012-08-31 20:56:32 UTC) #4
Mattias Nissler (ping if slow)
+jhawkins for FirstRunTest. I don't understand why this wasn't a problem earlier? Was there a ...
8 years, 3 months ago (2012-08-31 21:57:04 UTC) #5
James Hawkins
lgtm
8 years, 3 months ago (2012-08-31 23:38:18 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10909037/12002
8 years, 3 months ago (2012-09-01 11:15:30 UTC) #7
commit-bot: I haz the power
8 years, 3 months ago (2012-09-01 16:17:13 UTC) #8
Change committed as 154618

Powered by Google App Engine
This is Rietveld 408576698