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

Issue 10805034: Fix flakiness in RemoteFileSystemExtensionApiTests (Closed)

Created:
8 years, 5 months ago by tbarzic
Modified:
8 years, 5 months ago
Reviewers:
satorux1
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, nkostylev+watch_chromium.org, achuith+watch_chromium.org, Aaron Boodman, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Fix flakiness in RemoteFileSystemExtensionApiTests We get in trouble because FileBrowserEventRouter creates gdata system service early on (before we setup test service factory). When we create test system service, the old one gets shutdown and destroyed, but they both use the same gdata cache root path (which is created and destroyed async). This patch avoid use of GDataSystemServiceFactory::SetTestingFactoryAndUse, which cannot be called before an system service instance is already alive (created early on by FileBroserEventRouter). the flakiness was introduced by https://src.chromium.org/viewvc/chrome?view=rev&revision=147208 TEST=RemoteFileSystemExtensionApiTest.* BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147980

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : .. #

Patch Set 4 : feedback #

Total comments: 2

Patch Set 5 : make set_cahce_root safer #

Patch Set 6 : rebase #

Patch Set 7 : forgot a delete #

Patch Set 8 : added some comments #

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -47 lines) Patch
M chrome/browser/chromeos/extensions/external_filesystem_apitest.cc View 1 2 3 4 5 chunks +30 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_system_service.h View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_system_service.cc View 1 2 3 4 5 6 3 chunks +31 lines, -16 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tbarzic
Hey, can you take a look at this? I'm not too thrilled by this solution ...
8 years, 5 months ago (2012-07-20 15:41:30 UTC) #1
satorux1
http://codereview.chromium.org/10805034/diff/2001/chrome/browser/chromeos/gdata/gdata_system_service.h File chrome/browser/chromeos/gdata/gdata_system_service.h (right): http://codereview.chromium.org/10805034/diff/2001/chrome/browser/chromeos/gdata/gdata_system_service.h#newcode102 chrome/browser/chromeos/gdata/gdata_system_service.h:102: static void set_cache_root_for_test(const char* cache_root); let's use a std::string. ...
8 years, 5 months ago (2012-07-20 17:01:25 UTC) #2
tbarzic
8 years, 5 months ago (2012-07-20 17:22:44 UTC) #3
tbarzic
https://chromiumcodereview.appspot.com/10805034/diff/2001/chrome/browser/chromeos/gdata/gdata_system_service.h File chrome/browser/chromeos/gdata/gdata_system_service.h (right): https://chromiumcodereview.appspot.com/10805034/diff/2001/chrome/browser/chromeos/gdata/gdata_system_service.h#newcode102 chrome/browser/chromeos/gdata/gdata_system_service.h:102: static void set_cache_root_for_test(const char* cache_root); On 2012/07/20 17:01:25, satorux1 ...
8 years, 5 months ago (2012-07-20 18:34:05 UTC) #4
satorux1
http://codereview.chromium.org/10805034/diff/9/chrome/browser/chromeos/gdata/gdata_system_service.cc File chrome/browser/chromeos/gdata/gdata_system_service.cc (right): http://codereview.chromium.org/10805034/diff/9/chrome/browser/chromeos/gdata/gdata_system_service.cc#newcode171 chrome/browser/chromeos/gdata/gdata_system_service.cc:171: g_test_cache_root = &cache_root; this looks unsafe... It assumes that ...
8 years, 5 months ago (2012-07-21 06:49:12 UTC) #5
tbarzic
http://codereview.chromium.org/10805034/diff/9/chrome/browser/chromeos/gdata/gdata_system_service.cc File chrome/browser/chromeos/gdata/gdata_system_service.cc (right): http://codereview.chromium.org/10805034/diff/9/chrome/browser/chromeos/gdata/gdata_system_service.cc#newcode171 chrome/browser/chromeos/gdata/gdata_system_service.cc:171: g_test_cache_root = &cache_root; On 2012/07/21 06:49:13, satorux1 wrote: > ...
8 years, 5 months ago (2012-07-23 19:38:20 UTC) #6
satorux1
LGTM
8 years, 5 months ago (2012-07-23 20:01:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tbarzic@chromium.org/10805034/7003
8 years, 5 months ago (2012-07-23 21:38:18 UTC) #8
commit-bot: I haz the power
8 years, 5 months ago (2012-07-23 23:06:30 UTC) #9
Change committed as 147980

Powered by Google App Engine
This is Rietveld 408576698