diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 21:20:30 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-16 21:20:30 +0000 |
commit | 4fc4ce130b4798c185124e6eb721068ee2cc670f (patch) | |
tree | 1d7aaaf843140444b2be2196071afab6305d0286 /chrome/test/startup | |
parent | 5040e1e453412c81319d6c9b9f603a82fb63fb2e (diff) | |
download | chromium_src-4fc4ce130b4798c185124e6eb721068ee2cc670f.zip chromium_src-4fc4ce130b4798c185124e6eb721068ee2cc670f.tar.gz chromium_src-4fc4ce130b4798c185124e6eb721068ee2cc670f.tar.bz2 |
Moved the EvictFileFromSystemCacheWrapper function to the UITest class as we need this in other places.
Review URL: http://codereview.chromium.org/42238
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11779 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/startup')
-rw-r--r-- | chrome/test/startup/startup_test.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/chrome/test/startup/startup_test.cc b/chrome/test/startup/startup_test.cc index 031bc26..665b0e6 100644 --- a/chrome/test/startup/startup_test.cc +++ b/chrome/test/startup/startup_test.cc @@ -19,19 +19,6 @@ using base::TimeTicks; namespace { -// Wrapper around EvictFileFromSystemCache to retry 10 times in case of error. -// Apparently needed for Windows buildbots (to workaround an error when -// file is in use). -// TODO(phajdan.jr): Move to test_file_util if we need it in more places. -bool EvictFileFromSystemCacheWrapper(const FilePath& path) { - for (int i = 0; i < 10; i++) { - if (file_util::EvictFileFromSystemCache(path)) - return true; - PlatformThread::Sleep(1000); - } - return false; -} - class StartupTest : public UITest { public: StartupTest() { |