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

Unified Diff: net/disk_cache/disk_cache_test_base.cc

Issue 10824336: Run the disk cache tests in scoped temporary directories instead of a fixed directory so that they … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/disk_cache/disk_cache_test_base.cc
===================================================================
--- net/disk_cache/disk_cache_test_base.cc (revision 151735)
+++ net/disk_cache/disk_cache_test_base.cc (working copy)
@@ -14,7 +14,8 @@
#include "net/disk_cache/mem_backend_impl.h"
DiskCacheTest::DiskCacheTest() {
- cache_path_ = GetCacheFilePath();
+ CHECK(temp_dir_.CreateUniqueTempDir());
+ cache_path_ = temp_dir_.path();
if (!MessageLoop::current())
message_loop_.reset(new MessageLoopForIO());
}

Powered by Google App Engine
This is Rietveld 408576698