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

Unified Diff: chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc

Issue 391653002: [SyncFS] Use dedicated temporary directory in LocalFileChangeTrackerTest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local/local_file_sync_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc
diff --git a/chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc b/chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc
index a1f860d5333542843efb940a3713154c732a1503..c1aa548de6ff48b11c36a5905a9c37c8d8758591 100644
--- a/chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc
+++ b/chrome/browser/sync_file_system/local/local_file_change_tracker_unittest.cc
@@ -45,8 +45,9 @@ class LocalFileChangeTrackerTest : public testing::Test {
virtual void SetUp() OVERRIDE {
file_system_.SetUp(CannedSyncableFileSystem::QUOTA_ENABLED);
+ ASSERT_TRUE(base_dir_.CreateUniqueTempDir());
sync_context_ =
- new LocalFileSyncContext(base::FilePath(),
+ new LocalFileSyncContext(base_dir_.path(),
in_memory_env_.get(),
base::ThreadTaskRunnerHandle::Get().get(),
base::ThreadTaskRunnerHandle::Get().get());
@@ -110,6 +111,7 @@ class LocalFileChangeTrackerTest : public testing::Test {
}
base::MessageLoopForIO message_loop_;
+ base::ScopedTempDir base_dir_;
scoped_ptr<leveldb::Env> in_memory_env_;
CannedSyncableFileSystem file_system_;
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/local/local_file_sync_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698